public class SizeAwareDataOutputStream extends Object
| Constructor and Description |
|---|
SizeAwareDataOutputStream(FileOutputStream fileOutputStream,
int cacheSize) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
flush() |
long |
getSize() |
void |
write(byte[] v) |
void |
write(byte[] v,
int offset,
int len) |
void |
writeInt(int v) |
void |
writeLong(long v) |
public SizeAwareDataOutputStream(FileOutputStream fileOutputStream, int cacheSize)
public void writeLong(long v)
throws IOException
IOExceptionpublic void writeInt(int v)
throws IOException
IOExceptionpublic void write(byte[] v)
throws IOException
IOExceptionpublic void write(byte[] v,
int offset,
int len)
throws IOException
IOExceptionpublic void flush()
throws IOException
IOExceptionpublic void close()
throws IOException
IOExceptionpublic long getSize()
Copyright © 2024 The Apache Software Foundation. All rights reserved.