public class DataOutputStreamPlus extends AbstractDataOutput implements DataOutputPlus
DataOutputStreamAndChannel instead of this class, as it will
be more efficient. This class is only for situations where it cannot be used| Modifier and Type | Field and Description |
|---|---|
protected java.io.OutputStream |
out |
| Constructor and Description |
|---|
DataOutputStreamPlus(java.io.OutputStream out) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
flush() |
void |
write(byte[] buffer,
int offset,
int count)
Writes
count bytes from the byte array buffer
starting at offset to this RandomAccessFile starting at
the current file pointer.. |
void |
write(int oneByte)
Writes the specified byte
oneByte to this RandomAccessFile
starting at the current file pointer. |
write, write, write, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTFclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitwrite, writepublic void write(byte[] buffer,
int offset,
int count)
throws java.io.IOException
AbstractDataOutputcount bytes from the byte array buffer
starting at offset to this RandomAccessFile starting at
the current file pointer..write in interface java.io.DataOutputwrite in class AbstractDataOutputbuffer - the bytes to be writtenoffset - offset in buffer to get bytescount - number of bytes in buffer to writejava.io.IOException - If an error occurs attempting to write to this
RandomAccessFile.public void write(int oneByte)
throws java.io.IOException
AbstractDataOutputoneByte to this RandomAccessFile
starting at the current file pointer. Only the low order byte of
oneByte is written.write in interface java.io.DataOutputwrite in class AbstractDataOutputoneByte - the byte to be writtenjava.io.IOException - If an error occurs attempting to write to this
RandomAccessFile.public void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.OutputStreamjava.io.IOExceptionpublic void flush()
throws java.io.IOException
flush in interface java.io.Flushableflush in class java.io.OutputStreamjava.io.IOExceptionCopyright © 2015 The Apache Software Foundation