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
getFontStream()Returns Font file stream.
deepClone()Clones the ByteContentStreamSource object.

ByteContentStreamSource(byte[] fileContent)

public ByteContentStreamSource(byte[] fileContent)

Initializes new ByteContentStreamSource object.

Parameters:

ParameterTypeDescription
fileContentbyte[]File bytes.

getFontStream()

public InputStream getFontStream()

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

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

deepClone()

public Object deepClone()

Clones the ByteContentStreamSource object.

Returns: java.lang.Object