FileSystemStreamSource

Inheritance: java.lang.Object, com.aspose.font.StreamSource

public class FileSystemStreamSource extends StreamSource

表示基于文件系统的流源。

构造函数

构造函数描述
FileSystemStreamSource(String fileName)初始化新的 FileSystemStreamSource 对象。

方法

方法描述
deepClone()克隆 FileSystemStreamSource 对象。
equals(Object arg0)
getClass()
getFileName()获取文件名。
getFontStream()返回 Font 文件流。
getOffset()获取源内部的偏移量。
hashCode()
mustCloseAfterUse()子类可能阻止流关闭。
notify()
notifyAll()
setFileName(String value)设置文件名。
setOffset(long value)设置源内部的偏移量。
toString()
wait()
wait(long arg0)
wait(long arg0, int arg1)

FileSystemStreamSource(String fileName)

public FileSystemStreamSource(String fileName)

初始化新的 FileSystemStreamSource 对象。

Parameters:

参数类型描述
文件名java.lang.String文件名。

deepClone()

public Object deepClone()

克隆 FileSystemStreamSource 对象。

Returns: java.lang.Object - FileSystemStreamSource 对象的副本。

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

参数类型描述
arg0java.lang.Object

Returns: boolean

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

getFileName()

public String getFileName()

获取文件名。

Returns: java.lang.String - 文件名。

getFontStream()

public InputStream getFontStream()

返回 Font 文件流。使用后请记得关闭流。

Returns: java.io.InputStream - Font 文件流。

getOffset()

public long getOffset()

获取源内部的偏移量。

Returns: long - 源内部的偏移量。

hashCode()

public native int hashCode()

Returns: int

mustCloseAfterUse()

public boolean mustCloseAfterUse()

子类可能阻止流关闭。如果流源希望在使用后关闭流,则返回 true。否则返回 false。

Returns: boolean - 若流源希望在使用后关闭流,则为 true;否则为 false。

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

setFileName(String value)

public void setFileName(String value)

设置文件名。

Parameters:

参数类型描述
java.lang.String文件名。

setOffset(long value)

public void setOffset(long value)

设置源内部的偏移量。

Parameters:

参数类型描述
long源内部的偏移量。

toString()

public String toString()

Returns: java.lang.String

wait()

public final void wait()

wait(long arg0)

public final native void wait(long arg0)

Parameters:

参数类型描述
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

参数类型描述
arg0long
arg1int