Stream

Inheritance: java.lang.Object

All Implemented Interfaces: java.io.Closeable

public abstract class Stream implements Closeable

2016년 12월 14일 lexchou가 생성했습니다.

필드

필드설명
SEEK_CURRENT
SEEK_END
SEEK_SET

메서드

메서드설명
close()
copyTo(Stream output)
equals(Object arg0)
flush()
getClass()
getInputStream()
getLength()
getOutputStream()
hashCode()
notify()
notifyAll()
read(byte[] buf)
read(byte[] buf, int start, int len)
read(ByteSpan bytes)
readByte()
seek(long offset, int seek)
setLength(long len)
toString()
wait()
wait(long arg0)
wait(long arg0, int arg1)
wrap(InputStream stream)
wrap(OutputStream stream)OutputStream을 Stream으로 래핑합니다. 스트림을 닫아야 데이터가 출력 스트림에 플러시됩니다.
write(byte[] buf)
write(byte[] buf, int start, int len)
write(ByteSpan bytes)
writeByte(int b)

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:

매개변수형식설명
outputStream

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

매개변수형식설명
arg0java.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:

매개변수형식설명
bufbyte[]

Returns: int

read(byte[] buf, int start, int len)

public int read(byte[] buf, int start, int len)

Parameters:

매개변수형식설명
bufbyte[]
시작int
lenint

Returns: int

read(ByteSpan bytes)

public int read(ByteSpan bytes)

Parameters:

매개변수형식설명
bytescom.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
seekint

Returns: long

setLength(long len)

public void setLength(long len)

Parameters:

매개변수형식설명
lenlong

toString()

public String toString()

Returns: java.lang.String

wait()

public final void wait()

wait(long arg0)

public final void wait(long arg0)

Parameters:

매개변수형식설명
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

매개변수형식설명
arg0long
arg1int

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:

매개변수형식설명
bufbyte[]

write(byte[] buf, int start, int len)

public void write(byte[] buf, int start, int len)

Parameters:

매개변수형식설명
bufbyte[]
시작int
lenint

write(ByteSpan bytes)

public void write(ByteSpan bytes)

Parameters:

매개변수형식설명
bytescom.aspose.threed.ByteSpan

writeByte(int b)

public void writeByte(int b)

Parameters:

매개변수형식설명
bint