public abstract class ByteArrayStream extends ByteArray
| Modifier and Type | Field and Description |
|---|---|
protected int |
bufferSize
每次读取1mb
|
| Constructor and Description |
|---|
ByteArrayStream(byte[] bytes,
int bufferSize) |
| Modifier and Type | Method and Description |
|---|---|
static ByteArrayStream |
createByteArrayStream(String path) |
protected abstract void |
ensureAvailableBytes(int size) |
byte |
nextByte()
读取一个字节
|
char |
nextChar()
读取一个char,对应于writeChar
|
double |
nextDouble() |
float |
nextFloat() |
int |
nextInt()
读取一个int
|
close, createByteArray, finalize, getBytes, getLength, getOffset, hasMore, nextBoolean, nextString, nextUnsignedShort, nextUTFpublic static ByteArrayStream createByteArrayStream(String path)
public int nextInt()
ByteArraypublic char nextChar()
ByteArraypublic double nextDouble()
nextDouble in class ByteArraypublic byte nextByte()
ByteArrayprotected abstract void ensureAvailableBytes(int size)
Copyright © 2014–2021 码农场. All rights reserved.