public final class BufferedFileDataOutputStream extends java.io.OutputStream implements SyncableDataOutput
| Constructor and Description |
|---|
BufferedFileDataOutputStream(java.io.File file) |
BufferedFileDataOutputStream(java.io.File file,
java.nio.ByteOrder order) |
BufferedFileDataOutputStream(java.io.File file,
java.nio.ByteOrder order,
int bufferSize) |
BufferedFileDataOutputStream(java.nio.file.Path path) |
BufferedFileDataOutputStream(java.nio.file.Path path,
java.nio.ByteOrder order) |
BufferedFileDataOutputStream(java.nio.file.Path path,
java.nio.ByteOrder order,
int bufferSize) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
flush() |
long |
position() |
void |
sync() |
void |
write(byte[] b,
int off,
int len) |
void |
write(int b) |
void |
writeBoolean(boolean v) |
void |
writeByte(int v) |
void |
writeBytes(java.lang.String s) |
void |
writeChar(int v) |
void |
writeChars(java.lang.String s) |
void |
writeDouble(double v) |
void |
writeFloat(float v) |
void |
writeInt(int v) |
void |
writeLong(long v) |
void |
writeShort(int v) |
void |
writeUTF(java.lang.String str) |
public BufferedFileDataOutputStream(java.io.File file)
throws java.io.FileNotFoundException
java.io.FileNotFoundExceptionpublic BufferedFileDataOutputStream(java.io.File file,
java.nio.ByteOrder order)
throws java.io.FileNotFoundException
java.io.FileNotFoundExceptionpublic BufferedFileDataOutputStream(java.io.File file,
java.nio.ByteOrder order,
int bufferSize)
throws java.io.FileNotFoundException
java.io.FileNotFoundExceptionpublic BufferedFileDataOutputStream(java.nio.file.Path path)
throws java.io.IOException
java.io.IOExceptionpublic BufferedFileDataOutputStream(java.nio.file.Path path,
java.nio.ByteOrder order)
throws java.io.IOException
java.io.IOExceptionpublic BufferedFileDataOutputStream(java.nio.file.Path path,
java.nio.ByteOrder order,
int bufferSize)
throws java.io.IOException
java.io.IOExceptionpublic void write(int b)
throws java.io.IOException
write in interface java.io.DataOutputwrite in class java.io.OutputStreamjava.io.IOExceptionpublic void write(byte[] b,
int off,
int len)
throws java.io.IOException
write in interface java.io.DataOutputwrite in class java.io.OutputStreamjava.io.IOExceptionpublic void writeBoolean(boolean v)
throws java.io.IOException
writeBoolean in interface java.io.DataOutputjava.io.IOExceptionpublic void writeByte(int v)
throws java.io.IOException
writeByte in interface java.io.DataOutputjava.io.IOExceptionpublic void writeShort(int v)
throws java.io.IOException
writeShort in interface java.io.DataOutputjava.io.IOExceptionpublic void writeChar(int v)
throws java.io.IOException
writeChar in interface java.io.DataOutputjava.io.IOExceptionpublic void writeInt(int v)
throws java.io.IOException
writeInt in interface java.io.DataOutputjava.io.IOExceptionpublic void writeLong(long v)
throws java.io.IOException
writeLong in interface java.io.DataOutputjava.io.IOExceptionpublic void writeFloat(float v)
throws java.io.IOException
writeFloat in interface java.io.DataOutputjava.io.IOExceptionpublic void writeDouble(double v)
throws java.io.IOException
writeDouble in interface java.io.DataOutputjava.io.IOExceptionpublic void writeBytes(java.lang.String s)
throws java.io.IOException
writeBytes in interface java.io.DataOutputjava.io.IOExceptionpublic void writeChars(java.lang.String s)
throws java.io.IOException
writeChars in interface java.io.DataOutputjava.io.IOExceptionpublic void writeUTF(java.lang.String str)
throws java.io.IOException
writeUTF in interface java.io.DataOutputjava.io.IOExceptionpublic void flush()
throws java.io.IOException
flush in interface java.io.Flushableflush in class java.io.OutputStreamjava.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.OutputStreamjava.io.IOExceptionpublic long position()
throws java.io.IOException
position in interface Positionedjava.io.IOException