public interface ArrayDataOutput extends DataOutput
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
flush() |
void |
write(boolean[] buf) |
void |
write(boolean[] buf,
int offset,
int size) |
void |
write(byte[] buf) |
void |
write(byte[] buf,
int offset,
int size) |
void |
write(char[] buf) |
void |
write(char[] buf,
int offset,
int size) |
void |
write(double[] buf) |
void |
write(double[] buf,
int offset,
int size) |
void |
write(float[] buf) |
void |
write(float[] buf,
int offset,
int size) |
void |
write(int[] buf) |
void |
write(int[] buf,
int offset,
int size) |
void |
write(long[] buf) |
void |
write(long[] buf,
int offset,
int size) |
void |
write(short[] buf) |
void |
write(short[] buf,
int offset,
int size) |
void |
write(String[] buf) |
void |
write(String[] buf,
int offset,
int size) |
void |
writeArray(Object o)
Write a generic (possibly multi-dimenionsional) primitive or String
array.
|
write, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTFvoid writeArray(Object o) throws IOException
This routine is not called 'write' to avoid possible compilation errors in routines which define only some of the other methods of the interface (and defer to the superclass on others). In that case there is an ambiguity as to whether to call the routine in the current class but convert to Object, or call the method from the super class with the same type argument.
o - The primitive or String array to be written.IOException - if the argument is not of the proper typevoid write(byte[] buf)
throws IOException
write in interface DataOutputIOExceptionvoid write(boolean[] buf)
throws IOException
IOExceptionvoid write(short[] buf)
throws IOException
IOExceptionvoid write(char[] buf)
throws IOException
IOExceptionvoid write(int[] buf)
throws IOException
IOExceptionvoid write(long[] buf)
throws IOException
IOExceptionvoid write(float[] buf)
throws IOException
IOExceptionvoid write(double[] buf)
throws IOException
IOExceptionvoid write(String[] buf) throws IOException
IOExceptionvoid write(byte[] buf,
int offset,
int size)
throws IOException
write in interface DataOutputIOExceptionvoid write(boolean[] buf,
int offset,
int size)
throws IOException
IOExceptionvoid write(char[] buf,
int offset,
int size)
throws IOException
IOExceptionvoid write(short[] buf,
int offset,
int size)
throws IOException
IOExceptionvoid write(int[] buf,
int offset,
int size)
throws IOException
IOExceptionvoid write(long[] buf,
int offset,
int size)
throws IOException
IOExceptionvoid write(float[] buf,
int offset,
int size)
throws IOException
IOExceptionvoid write(double[] buf,
int offset,
int size)
throws IOException
IOExceptionvoid write(String[] buf, int offset, int size) throws IOException
IOExceptionvoid flush()
throws IOException
IOExceptionvoid close()
throws IOException
IOExceptionCopyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.