MemoryStream
내용물
[
숨다
]Inheritance: java.lang.Object, com.aspose.threed.Stream
All Implemented Interfaces: java.lang.AutoCloseable
public class MemoryStream extends Stream implements AutoCloseable
2017년 6월 13일 lexchou에 의해 생성되었습니다.
생성자
| 생성자 | 설명 |
|---|---|
| MemoryStream() | |
| MemoryStream(int capacity) | |
| MemoryStream(byte[] data) |
필드
| 필드 | 설명 |
|---|---|
| SEEK_CURRENT | |
| SEEK_END | |
| SEEK_SET |
메서드
MemoryStream()
public MemoryStream()
MemoryStream(int capacity)
public MemoryStream(int capacity)
Parameters:
| 매개변수 | 형식 | 설명 |
|---|---|---|
| 용량 | int |
MemoryStream(byte[] data)
public MemoryStream(byte[] data)
Parameters:
| 매개변수 | 형식 | 설명 |
|---|---|---|
| 데이터 | 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:
| 매개변수 | 형식 | 설명 |
|---|---|---|
| stream | Stream |
copyTo(OutputStream stream)
public void copyTo(OutputStream stream)
Parameters:
| 매개변수 | 형식 | 설명 |
|---|---|---|
| 스트림 | java.io.OutputStream |
equals(Object arg0)
public boolean equals(Object arg0)
Parameters:
| 매개변수 | 형식 | 설명 |
|---|---|---|
| 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:
| 매개변수 | 형식 | 설명 |
|---|---|---|
| buf | byte[] |
Returns: int
read(byte[] buf, int start, int len)
public int read(byte[] buf, int start, int len)
Parameters:
| 매개변수 | 형식 | 설명 |
|---|---|---|
| buf | byte[] | |
| 시작 | int | |
| len | int |
Returns: int
read(ByteSpan bytes)
public int read(ByteSpan bytes)
Parameters:
| 매개변수 | 형식 | 설명 |
|---|---|---|
| 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:
| 매개변수 | 형식 | 설명 |
|---|---|---|
| 오프셋 | long | |
| seek | int |
Returns: long
setCapacity(int cap)
public void setCapacity(int cap)
용량을 지정된 값으로 설정합니다
Parameters:
| 매개변수 | 형식 | 설명 |
|---|---|---|
| cap | int | 메모리 스트림의 새 용량. |
setLength(long len)
public void setLength(long len)
Parameters:
| 매개변수 | 형식 | 설명 |
|---|---|---|
| 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:
| 매개변수 | 형식 | 설명 |
|---|---|---|
| arg0 | long |
wait(long arg0, int arg1)
public final void wait(long arg0, int arg1)
Parameters:
| 매개변수 | 형식 | 설명 |
|---|---|---|
| arg0 | long | |
| arg1 | int |
wrap(InputStream stream)
public static Stream wrap(InputStream stream)
Parameters:
| 매개변수 | 형식 | 설명 |
|---|---|---|
| 스트림 | java.io.InputStream |
Returns: Stream
wrap(OutputStream stream)
public static Stream wrap(OutputStream stream)
OutputStream을 Stream으로 래핑합니다. 스트림을 닫아야 데이터가 출력 스트림에 플러시됩니다.
Parameters:
| 매개변수 | 형식 | 설명 |
|---|---|---|
| 스트림 | java.io.OutputStream | 래핑할 출력 스트림 |
Returns: Stream - wrapped Stream instance
write(byte[] buf)
public void write(byte[] buf)
Parameters:
| 매개변수 | 형식 | 설명 |
|---|---|---|
| buf | byte[] |
write(byte[] buf, int start, int len)
public void write(byte[] buf, int start, int len)
Parameters:
| 매개변수 | 형식 | 설명 |
|---|---|---|
| buf | byte[] | |
| 시작 | int | |
| len | int |
write(ByteSpan bytes)
public void write(ByteSpan bytes)
Parameters:
| 매개변수 | 형식 | 설명 |
|---|---|---|
| bytes | com.aspose.threed.ByteSpan |
writeByte(int b)
public void writeByte(int b)
Parameters:
| 매개변수 | 형식 | 설명 |
|---|---|---|
| b | int |