StreamSource

Inheritance: java.lang.Object

public abstract class StreamSource

Defines a way to get a file stream when it is needed.

Constructors

ConstructorDescription
StreamSource()Initializes stream source instance.

Methods

MethodDescription
getFontStream()Returns Font stream.
mustCloseAfterUse()The inheritors may prevent stream from closing.
getOffset()Gets offset inside the source.
setOffset(long value)Sets offset inside the source.
deepClone()Clones the stream source object.

StreamSource()

public StreamSource()

Initializes stream source instance.

getFontStream()

public abstract InputStream getFontStream()

Returns Font stream.

Returns: java.io.InputStream - Font stream.

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.

getOffset()

public long getOffset()

Gets offset inside the source.

Returns: long - Offset inside the source.

setOffset(long value)

public void setOffset(long value)

Sets offset inside the source.

Parameters:

ParameterTypeDescription
valuelongOffset inside the source.

deepClone()

public abstract Object deepClone()

Clones the stream source object.

Returns: java.lang.Object - Copy of the stream source object.