| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
logger
the logger for this class
|
| Constructor and Description |
|---|
ByteOutputStream(OutputStream os) |
ByteOutputStream(String filename) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
long |
getByteOffset()
Returns the byte offset of the stream.
|
int |
getVSize(long x) |
int |
write(byte[] arr,
int off,
int len) |
int |
writeVInt(int x) |
int |
writeVLong(long x) |
public ByteOutputStream(String filename) throws IOException
IOExceptionpublic ByteOutputStream(OutputStream os) throws IOException
IOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic long getByteOffset()
ByteOutgetByteOffset in interface ByteOutpublic int writeVInt(int x)
throws IOException
writeVInt in interface ByteOutIOExceptionpublic int write(byte[] arr,
int off,
int len)
throws IOException
write in interface ByteOutIOExceptionpublic int writeVLong(long x)
throws IOException
writeVLong in interface ByteOutIOExceptionTerrier Information Retrieval Platform 5.2. Copyright © 2004-2019, University of Glasgow