Closeable, AutoCloseablepublic class ByteInputStream extends ByteArrayInputStream
buf, count, mark, pos| Constructor | Description |
|---|---|
ByteInputStream() |
|
ByteInputStream(byte[] buf,
int length) |
|
ByteInputStream(byte[] buf,
int offset,
int length) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
close() |
|
byte[] |
getBytes() |
|
int |
getCount() |
|
void |
setBuf(byte[] buf) |
available, mark, markSupported, read, read, reset, skipread, readAllBytes, readNBytes, transferTopublic ByteInputStream()
public ByteInputStream(byte[] buf,
int length)
public ByteInputStream(byte[] buf,
int offset,
int length)
public byte[] getBytes()
public int getCount()
public void close()
throws IOException
close in interface AutoCloseableclose in interface Closeableclose in class ByteArrayInputStreamIOExceptionpublic void setBuf(byte[] buf)
Copyright © 2018 Oracle. All rights reserved.