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, writeUTF
void 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 DataOutput
IOException
void write(boolean[] buf) throws IOException
IOException
void write(short[] buf) throws IOException
IOException
void write(char[] buf) throws IOException
IOException
void write(int[] buf) throws IOException
IOException
void write(long[] buf) throws IOException
IOException
void write(float[] buf) throws IOException
IOException
void write(double[] buf) throws IOException
IOException
void write(String[] buf) throws IOException
IOException
void write(byte[] buf, int offset, int size) throws IOException
write
in interface DataOutput
IOException
void write(boolean[] buf, int offset, int size) throws IOException
IOException
void write(char[] buf, int offset, int size) throws IOException
IOException
void write(short[] buf, int offset, int size) throws IOException
IOException
void write(int[] buf, int offset, int size) throws IOException
IOException
void write(long[] buf, int offset, int size) throws IOException
IOException
void write(float[] buf, int offset, int size) throws IOException
IOException
void write(double[] buf, int offset, int size) throws IOException
IOException
void write(String[] buf, int offset, int size) throws IOException
IOException
void flush() throws IOException
IOException
void close() throws IOException
IOException
Copyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.