ByteContentStreamSource

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

public class ByteContentStreamSource extends StreamSource

表示基于 _content 流的流源。

构造函数

构造函数描述
ByteContentStreamSource(byte[] fileContent)初始化新的 ByteContentStreamSource 对象。

方法

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

ByteContentStreamSource(byte[] fileContent)

public ByteContentStreamSource(byte[] fileContent)

初始化新的 ByteContentStreamSource 对象。

Parameters:

参数类型描述
fileContentbyte[]文件字节。

deepClone()

public Object deepClone()

克隆 ByteContentStreamSource 对象。

Returns: java.lang.Object

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

参数类型描述
arg0java.lang.Object

Returns: boolean

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

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()

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