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
IOException
public ByteOutputStream(OutputStream os) throws IOException
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
public long getByteOffset()
ByteOut
getByteOffset
in interface ByteOut
public int writeVInt(int x) throws IOException
writeVInt
in interface ByteOut
IOException
public int write(byte[] arr, int off, int len) throws IOException
write
in interface ByteOut
IOException
public int writeVLong(long x) throws IOException
writeVLong
in interface ByteOut
IOException
Terrier Information Retrieval Platform 5.1. Copyright © 2004-2019, University of Glasgow