ByteContentStreamSource

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

public class ByteContentStreamSource extends StreamSource

Represents a stream source based on _content stream.

Constructors

ConstructorDescription
ByteContentStreamSource(byte[] fileContent)Initializes new ByteContentStreamSource object.

Methods

MethodDescription
deepClone()Clones the ByteContentStreamSource object.
equals(Object arg0)
getClass()
getFontStream()Returns Font file stream.
getOffset()Gets offset inside the source.
hashCode()
mustCloseAfterUse()The inheritors may prevent stream from closing.
notify()
notifyAll()
setOffset(long value)Sets offset inside the source.
toString()
wait()
wait(long arg0)
wait(long arg0, int arg1)

ByteContentStreamSource(byte[] fileContent)

public ByteContentStreamSource(byte[] fileContent)

Initializes new ByteContentStreamSource object.

Parameters:

ParameterTypeDescription
fileContentbyte[]File bytes.

deepClone()

public Object deepClone()

Clones the ByteContentStreamSource object.

Returns: java.lang.Object

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

ParameterTypeDescription
arg0java.lang.Object

Returns: boolean

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

getFontStream()

public InputStream getFontStream()

Returns Font file stream. Don’t forget to close the stream after use.

Returns: java.io.InputStream - Font file stream.

getOffset()

public long getOffset()

Gets offset inside the source.

Returns: long - Offset inside the source.

hashCode()

public native int hashCode()

Returns: int

mustCloseAfterUse()

public boolean mustCloseAfterUse()

The inheritors may prevent stream from closing. Returns true if the stream source wants the stream to be closed after use. Otherwise returns false.

Returns: boolean - True if the stream source wants the stream to be closed after use, otherwise false.

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

setOffset(long value)

public void setOffset(long value)

Sets offset inside the source.

Parameters:

ParameterTypeDescription
valuelongOffset inside the source.

toString()

public String toString()

Returns: java.lang.String

wait()

public final void wait()

wait(long arg0)

public final native void wait(long arg0)

Parameters:

ParameterTypeDescription
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

ParameterTypeDescription
arg0long
arg1int