Stream
Contents
[
Hide
]Inheritance: java.lang.Object
All Implemented Interfaces: java.io.Closeable
public abstract class Stream implements Closeable
Created by lexchou on 12/14/2016.
Fields
| Field | Description |
|---|---|
| SEEK_CURRENT | |
| SEEK_END | |
| SEEK_SET |
Methods
SEEK_CURRENT
public static final int SEEK_CURRENT
SEEK_END
public static final int SEEK_END
SEEK_SET
public static final int SEEK_SET
close()
public void close()
copyTo(Stream output)
public void copyTo(Stream output)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| output | Stream |
equals(Object arg0)
public boolean equals(Object arg0)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| arg0 | java.lang.Object |
Returns: boolean
flush()
public void flush()
getClass()
public final native Class<?> getClass()
Returns: java.lang.Class
getInputStream()
public InputStream getInputStream()
Returns: java.io.InputStream
getLength()
public long getLength()
Returns: long
getOutputStream()
public OutputStream getOutputStream()
Returns: java.io.OutputStream
hashCode()
public native int hashCode()
Returns: int
notify()
public final native void notify()
notifyAll()
public final native void notifyAll()
read(byte[] buf)
public int read(byte[] buf)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| buf | byte[] |
Returns: int
read(byte[] buf, int start, int len)
public int read(byte[] buf, int start, int len)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| buf | byte[] | |
| start | int | |
| len | int |
Returns: int
read(ByteSpan bytes)
public int read(ByteSpan bytes)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| bytes | com.aspose.threed.ByteSpan |
Returns: int
readByte()
public int readByte()
Returns: int
seek(long offset, int seek)
public long seek(long offset, int seek)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| offset | long | |
| seek | int |
Returns: long
setLength(long len)
public void setLength(long len)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| len | long |
toString()
public String toString()
Returns: java.lang.String
wait()
public final void wait()
wait(long arg0)
public final 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 |
wrap(InputStream stream)
public static Stream wrap(InputStream stream)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| stream | java.io.InputStream |
Returns: Stream
wrap(OutputStream stream)
public static Stream wrap(OutputStream stream)
Wrap an OutputStream as Stream, the stream must be closed to flush data to output stream.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| stream | java.io.OutputStream | output stream to wrap |
Returns: Stream - wrapped Stream instance
write(byte[] buf)
public void write(byte[] buf)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| buf | byte[] |
write(byte[] buf, int start, int len)
public void write(byte[] buf, int start, int len)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| buf | byte[] | |
| start | int | |
| len | int |
write(ByteSpan bytes)
public void write(ByteSpan bytes)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| bytes | com.aspose.threed.ByteSpan |
writeByte(int b)
public void writeByte(int b)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| b | int |