FileSystemStreamSource
Inheritance: java.lang.Object, com.aspose.font.StreamSource
public class FileSystemStreamSource extends StreamSource
Represents a stream source based on file system.
Constructors
Constructor | Description |
---|---|
FileSystemStreamSource(String fileName) | Initializes new FileSystemStreamSource object. |
Methods
Method | Description |
---|---|
deepClone() | Clones the FileSystemStreamSource object. |
equals(Object arg0) | |
getClass() | |
getFileName() | Gets file name. |
getFontStream() | Returns Font file stream. |
getOffset() | Gets offset inside the source. |
hashCode() | |
mustCloseAfterUse() | The inheritors may prevent stream from closing. |
notify() | |
notifyAll() | |
setFileName(String value) | Sets file name. |
setOffset(long value) | Sets offset inside the source. |
toString() | |
wait() | |
wait(long arg0) | |
wait(long arg0, int arg1) |
FileSystemStreamSource(String fileName)
public FileSystemStreamSource(String fileName)
Initializes new FileSystemStreamSource object.
Parameters:
Parameter | Type | Description |
---|---|---|
fileName | java.lang.String | File name. |
deepClone()
public Object deepClone()
Clones the FileSystemStreamSource object.
Returns: java.lang.Object - Copy of FileSystemStreamSource 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
getFileName()
public String getFileName()
Gets file name.
Returns: java.lang.String - File name.
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()
setFileName(String value)
public void setFileName(String value)
Sets file name.
Parameters:
Parameter | Type | Description |
---|---|---|
value | java.lang.String | File name. |
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 |