|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.io.OutputStream
org.apache.cassandra.io.util.AbstractDataOutput
public abstract class AbstractDataOutput
| Constructor Summary | |
|---|---|
AbstractDataOutput()
|
|
| Method Summary | |
|---|---|
void |
write(byte[] buffer)
Writes the entire contents of the byte array buffer to
this RandomAccessFile starting at the current file pointer. |
abstract 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.. |
abstract void |
write(int oneByte)
Writes the specified byte oneByte to this RandomAccessFile
starting at the current file pointer. |
void |
writeBoolean(boolean val)
Writes a boolean to this output stream. |
void |
writeByte(int val)
Writes a 8-bit byte to this output stream. |
void |
writeBytes(java.lang.String str)
Writes the low order 8-bit bytes from a String to this output stream. |
void |
writeChar(int val)
Writes the specified 16-bit character to the OutputStream. |
void |
writeChars(java.lang.String str)
Writes the specified 16-bit characters contained in str to the OutputStream. |
void |
writeDouble(double val)
Writes a 64-bit double to this output stream. |
void |
writeFloat(float val)
Writes a 32-bit float to this output stream. |
void |
writeInt(int val)
Writes a 32-bit int to this output stream. |
void |
writeLong(long val)
Writes a 64-bit long to this output stream. |
void |
writeShort(int val)
Writes the specified 16-bit short to the OutputStream. |
void |
writeUTF(java.lang.String str)
Writes the specified String out in UTF format. |
| Methods inherited from class java.io.OutputStream |
|---|
close, flush |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractDataOutput()
| Method Detail |
|---|
public void write(byte[] buffer)
throws java.io.IOException
buffer to
this RandomAccessFile starting at the current file pointer.
write in interface java.io.DataOutputwrite in class java.io.OutputStreambuffer - the buffer to be written.
java.io.IOException - If an error occurs trying to write to this RandomAccessFile.
public abstract void write(byte[] buffer,
int offset,
int count)
throws java.io.IOException
count 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 java.io.OutputStreambuffer - the bytes to be writtenoffset - offset in buffer to get bytescount - number of bytes in buffer to write
java.io.IOException - If an error occurs attempting to write to this
RandomAccessFile.
java.lang.IndexOutOfBoundsException - If offset or count are outside of bounds.
public abstract void write(int oneByte)
throws java.io.IOException
oneByte 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 java.io.OutputStreamoneByte - the byte to be written
java.io.IOException - If an error occurs attempting to write to this
RandomAccessFile.
public final void writeBoolean(boolean val)
throws java.io.IOException
writeBoolean in interface java.io.DataOutputval - the boolean value to write to the OutputStream
java.io.IOException - If an error occurs attempting to write to this
DataOutputStream.
public final void writeByte(int val)
throws java.io.IOException
writeByte in interface java.io.DataOutputval - the byte value to write to the OutputStream
java.io.IOException - If an error occurs attempting to write to this
DataOutputStream.
public final void writeBytes(java.lang.String str)
throws java.io.IOException
writeBytes in interface java.io.DataOutputstr - the String containing the bytes to write to the OutputStream
java.io.IOException - If an error occurs attempting to write to this
DataOutputStream.
public final void writeChar(int val)
throws java.io.IOException
writeChar in interface java.io.DataOutputval - the character to be written
java.io.IOException - If an error occurs attempting to write to this
DataOutputStream.
public final void writeChars(java.lang.String str)
throws java.io.IOException
writeChars in interface java.io.DataOutputstr - the String whose characters are to be written.
java.io.IOException - If an error occurs attempting to write to this
DataOutputStream.
public final void writeDouble(double val)
throws java.io.IOException
writeDouble in interface java.io.DataOutputval - the double to be written.
java.io.IOException - If an error occurs attempting to write to this
DataOutputStream.
public final void writeFloat(float val)
throws java.io.IOException
writeFloat in interface java.io.DataOutputval - the float to be written.
java.io.IOException - If an error occurs attempting to write to this
DataOutputStream.
public void writeInt(int val)
throws java.io.IOException
writeInt in interface java.io.DataOutputval - the int to be written.
java.io.IOException - If an error occurs attempting to write to this
DataOutputStream.
public void writeLong(long val)
throws java.io.IOException
writeLong in interface java.io.DataOutputval - the long to be written.
java.io.IOException - If an error occurs attempting to write to this
DataOutputStream.
public void writeShort(int val)
throws java.io.IOException
writeShort in interface java.io.DataOutputval - the short to be written
java.io.IOException - If an error occurs attempting to write to this
DataOutputStream.
public final void writeUTF(java.lang.String str)
throws java.io.IOException
writeUTF in interface java.io.DataOutputstr - the String to be written in UTF format.
java.io.IOException - If an error occurs attempting to write to this
DataOutputStream.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||