MemoryStream
Inheritance: java.lang.Object, com.aspose.threed.Stream
All Implemented Interfaces: java.lang.AutoCloseable
public class MemoryStream extends Stream implements AutoCloseable
Erstellt von lexchou am 13.06.2017.
Konstruktoren
| Konstruktor | Beschreibung |
|---|---|
| MemoryStream() | |
| MemoryStream(int capacity) | |
| MemoryStream(byte[] data) |
Felder
| Feld | Beschreibung |
|---|---|
| SEEK_CURRENT | |
| SEEK_END | |
| SEEK_SET |
Methoden
| Methode | Beschreibung |
|---|---|
| close() | |
| copyTo(Stream stream) | |
| copyTo(OutputStream stream) | |
| equals(Object arg0) | |
| flush() | |
| getBuffer() | |
| getClass() | |
| getInputStream() | |
| getLength() | |
| getOutputStream() | |
| getSize() | |
| hashCode() | |
| notify() | |
| notifyAll() | |
| read(byte[] buf) | |
| read(byte[] buf, int start, int len) | |
| read(ByteSpan bytes) | |
| readByte() | |
| seek(long offset, int seek) | |
| setCapacity(int cap) | Setzt die Kapazität auf den angegebenen Wert |
| setLength(long len) | |
| toArray() | |
| toString() | |
| wait() | |
| wait(long arg0) | |
| wait(long arg0, int arg1) | |
| wrap(InputStream stream) | |
| wrap(OutputStream stream) | Wickelt einen OutputStream als Stream ein, der Stream muss geschlossen werden, um Daten in den Ausgabestream zu flushen. |
| write(byte[] buf) | |
| write(byte[] buf, int start, int len) | |
| write(ByteSpan bytes) | |
| writeByte(int b) |
MemoryStream()
public MemoryStream()
MemoryStream(int capacity)
public MemoryStream(int capacity)
Parameters:
| Parameter | Typ | Beschreibung |
|---|---|---|
| Kapazität | int |
MemoryStream(byte[] data)
public MemoryStream(byte[] data)
Parameters:
| Parameter | Typ | Beschreibung |
|---|---|---|
| Daten | byte[] |
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 stream)
public void copyTo(Stream stream)
Parameters:
| Parameter | Typ | Beschreibung |
|---|---|---|
| stream | Stream |
copyTo(OutputStream stream)
public void copyTo(OutputStream stream)
Parameters:
| Parameter | Typ | Beschreibung |
|---|---|---|
| Stream | java.io.OutputStream |
equals(Object arg0)
public boolean equals(Object arg0)
Parameters:
| Parameter | Typ | Beschreibung |
|---|---|---|
| arg0 | java.lang.Object |
Returns: boolean
flush()
public void flush()
getBuffer()
public byte[] getBuffer()
Returns: byte[]
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
getSize()
public int getSize()
Returns: int
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 | Typ | Beschreibung |
|---|---|---|
| buf | byte[] |
Returns: int
read(byte[] buf, int start, int len)
public int read(byte[] buf, int start, int len)
Parameters:
| Parameter | Typ | Beschreibung |
|---|---|---|
| buf | byte[] | |
| Start | int | |
| len | int |
Returns: int
read(ByteSpan bytes)
public int read(ByteSpan bytes)
Parameters:
| Parameter | Typ | Beschreibung |
|---|---|---|
| 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 | Typ | Beschreibung |
|---|---|---|
| Versatz | long | |
| seek | int |
Returns: long
setCapacity(int cap)
public void setCapacity(int cap)
Setzt die Kapazität auf den angegebenen Wert
Parameters:
| Parameter | Typ | Beschreibung |
|---|---|---|
| cap | int | neue Kapazität des MemoryStream. |
setLength(long len)
public void setLength(long len)
Parameters:
| Parameter | Typ | Beschreibung |
|---|---|---|
| len | long |
toArray()
public byte[] toArray()
Returns: byte[]
toString()
public String toString()
Returns: java.lang.String
wait()
public final void wait()
wait(long arg0)
public final void wait(long arg0)
Parameters:
| Parameter | Typ | Beschreibung |
|---|---|---|
| arg0 | long |
wait(long arg0, int arg1)
public final void wait(long arg0, int arg1)
Parameters:
| Parameter | Typ | Beschreibung |
|---|---|---|
| arg0 | long | |
| arg1 | int |
wrap(InputStream stream)
public static Stream wrap(InputStream stream)
Parameters:
| Parameter | Typ | Beschreibung |
|---|---|---|
| Stream | java.io.InputStream |
Returns: Stream
wrap(OutputStream stream)
public static Stream wrap(OutputStream stream)
Wickelt einen OutputStream als Stream ein, der Stream muss geschlossen werden, um Daten in den Ausgabestream zu flushen.
Parameters:
| Parameter | Typ | Beschreibung |
|---|---|---|
| Stream | java.io.OutputStream | Ausgabestream zum Einwickeln |
Returns: Stream - wrapped Stream instance
write(byte[] buf)
public void write(byte[] buf)
Parameters:
| Parameter | Typ | Beschreibung |
|---|---|---|
| buf | byte[] |
write(byte[] buf, int start, int len)
public void write(byte[] buf, int start, int len)
Parameters:
| Parameter | Typ | Beschreibung |
|---|---|---|
| buf | byte[] | |
| Start | int | |
| len | int |
write(ByteSpan bytes)
public void write(ByteSpan bytes)
Parameters:
| Parameter | Typ | Beschreibung |
|---|---|---|
| Bytes | com.aspose.threed.ByteSpan |
writeByte(int b)
public void writeByte(int b)
Parameters:
| Parameter | Typ | Beschreibung |
|---|---|---|
| b | int |