ByteContentStreamSource
Inheritance: java.lang.Object, com.aspose.font.StreamSource
public class ByteContentStreamSource extends StreamSource
Represents a stream source based on content stream.
Constructors
Constructor | Description |
---|---|
ByteContentStreamSource(byte[] fileContent) | Initializes new ByteContentStreamSource object. |
Methods
Method | Description |
---|---|
getFontStream() | Returns Font file stream. |
deepClone() | Clones the ByteContentStreamSource object. |
ByteContentStreamSource(byte[] fileContent)
public ByteContentStreamSource(byte[] fileContent)
Initializes new ByteContentStreamSource object.
Parameters:
Parameter | Type | Description |
---|---|---|
fileContent | byte[] | 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