public abstract class ByteArrayStream extends ByteArray
| 限定符和类型 | 字段和说明 |
|---|---|
protected int |
bufferSize
每次读取1mb
|
| 构造器和说明 |
|---|
ByteArrayStream(byte[] bytes,
int bufferSize) |
| 限定符和类型 | 方法和说明 |
|---|---|
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, nextString, nextUnsignedShort, nextUTFpublic static ByteArrayStream createByteArrayStream(String path)
public char nextChar()
ByteArraypublic double nextDouble()
nextDouble 在类中 ByteArrayprotected abstract void ensureAvailableBytes(int size)
Copyright © 2014–2017 码农场. All rights reserved.