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 |
---|---|
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:
Parameter | Type | Description |
---|---|---|
fileContent | byte[] | File bytes. |
deepClone()
public Object deepClone()
Clones the ByteContentStreamSource object.
Returns: java.lang.Object
equals(Object arg0)
public boolean equals(Object arg0)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | java.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:
Parameter | Type | Description |
---|---|---|
value | long | Offset 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:
Parameter | Type | Description |
---|---|---|
arg0 | long |
wait(long arg0, int arg1)
public final void wait(long arg0, int arg1)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | long | |
arg1 | int |