com.hankcs.hanlp.corpus.io
类 ByteArrayStream
java.lang.Object
com.hankcs.hanlp.corpus.io.ByteArray
com.hankcs.hanlp.corpus.io.ByteArrayStream
public class ByteArrayStream
- extends ByteArray
流式的字节数组,降低读取时的内存峰值
- 作者:
- hankcs
| 从类 java.lang.Object 继承的方法 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ByteArrayStream
public ByteArrayStream(byte[] bytes,
int bufferSize,
FileChannel fileChannel)
createByteArrayStream
public static ByteArrayStream createByteArrayStream(String path)
nextInt
public int nextInt()
- 从类
ByteArray 复制的描述
- 读取一个int
- 覆盖:
- 类
ByteArray 中的 nextInt
- 返回:
nextChar
public char nextChar()
- 从类
ByteArray 复制的描述
- 读取一个char,对应于writeChar
- 覆盖:
- 类
ByteArray 中的 nextChar
- 返回:
nextDouble
public double nextDouble()
- 覆盖:
- 类
ByteArray 中的 nextDouble
nextByte
public byte nextByte()
- 从类
ByteArray 复制的描述
- 读取一个字节
- 覆盖:
- 类
ByteArray 中的 nextByte
- 返回:
nextFloat
public float nextFloat()
- 覆盖:
- 类
ByteArray 中的 nextFloat
hasMore
public boolean hasMore()
- 覆盖:
- 类
ByteArray 中的 hasMore
Copyright © 2014–2015 鐮佸啘鍦�/a>. All rights reserved.