public abstract class ArrayUtil
extends java.lang.Object
| Constructor and Description |
|---|
ArrayUtil() |
| Modifier and Type | Method and Description |
|---|---|
static void |
readArrayItems(java.io.ObjectInput in,
java.lang.Object[] a)
Read an array of objects out of a stream.
|
static int |
readArrayLength(java.io.ObjectInput in)
Read the length of an array of objects in an object stream.
|
static boolean[] |
readBooleanArray(java.io.ObjectInput in)
Read an array of integers from an ObjectInput.
|
static int[] |
readIntArray(java.io.ObjectInput in)
Read an array of integers from an ObjectInput.
|
static int[][] |
readInts(java.io.ObjectInput in) |
static long[] |
readLongArray(java.io.ObjectInput in)
Read an array of integers from an ObjectInput.
|
static java.lang.Object[] |
readObjectArray(java.io.ObjectInput in)
Reads an array of objects from the stream.
|
static java.lang.String[] |
readStringArray(java.io.ObjectInput in)
Read an array of strings from an ObjectInput.
|
static java.lang.String |
toString(int[] value) |
static void |
writeArray(java.io.ObjectOutput out,
java.lang.Object[] a)
Write an array of objects and length to an output stream.
|
static void |
writeArrayItems(java.io.ObjectOutput out,
java.lang.Object[] a)
Write an array of objects to an output stream.
|
static void |
writeArrayLength(java.io.ObjectOutput out,
java.lang.Object[] a)
Write the length of an array of objects to an output stream.
|
static void |
writeBooleanArray(java.io.ObjectOutput out,
boolean[] a)
Write an array of booleans to an ObjectOutput.
|
static void |
writeIntArray(java.io.ObjectOutput out,
int[] a)
Write an array of integers to an ObjectOutput.
|
static void |
writeInts(java.io.ObjectOutput out,
int[][] val) |
static void |
writeLongArray(java.io.ObjectOutput out,
long[] a)
Write an array of longs to an ObjectOutput.
|
public static void writeArrayLength(java.io.ObjectOutput out,
java.lang.Object[] a)
throws java.io.IOException
out - ObjectOutput streama - array of objects whose length should be written.java.io.IOException - The write caused an IOException.public static void writeArrayItems(java.io.ObjectOutput out,
java.lang.Object[] a)
throws java.io.IOException
out - Object output stream to write to.a - array of objects to write.java.io.IOException - The write caused an IOException.public static void writeArray(java.io.ObjectOutput out,
java.lang.Object[] a)
throws java.io.IOException
out - Object output stream to write to.a - array of objects to write.java.io.IOException - The write caused an IOException.public static void readArrayItems(java.io.ObjectInput in,
java.lang.Object[] a)
throws java.io.IOException,
java.lang.ClassNotFoundException
in - Input streama - array to read intojava.io.IOException - The write caused an IOException.java.lang.ClassNotFoundException - The Class for an Object we are reading does not existpublic static int readArrayLength(java.io.ObjectInput in)
throws java.io.IOException
in - Input stream.java.io.IOException - The write caused an IOException.public static java.lang.Object[] readObjectArray(java.io.ObjectInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
in - Input streamjava.io.IOException - The write caused an IOException.java.lang.ClassNotFoundException - The Class for an Object we are reading does not existpublic static void writeIntArray(java.io.ObjectOutput out,
int[] a)
throws java.io.IOException
out - the ObjectOutput.a - the array.java.io.IOException - The write caused an IOException.public static int[] readIntArray(java.io.ObjectInput in)
throws java.io.IOException
in - the ObjectInput.java.io.IOException - The write caused an IOException.public static void writeInts(java.io.ObjectOutput out,
int[][] val)
throws java.io.IOException
java.io.IOExceptionpublic static int[][] readInts(java.io.ObjectInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
java.io.IOExceptionjava.lang.ClassNotFoundExceptionpublic static java.lang.String toString(int[] value)
public static void writeLongArray(java.io.ObjectOutput out,
long[] a)
throws java.io.IOException
out - the ObjectOutput.a - the array.java.io.IOException - The write caused an IOException.public static long[] readLongArray(java.io.ObjectInput in)
throws java.io.IOException
in - the ObjectInput.java.io.IOException - The write caused an IOException.public static java.lang.String[] readStringArray(java.io.ObjectInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
in - the ObjectInput.java.io.IOException - The write caused an IOException.java.lang.ClassNotFoundExceptionpublic static void writeBooleanArray(java.io.ObjectOutput out,
boolean[] a)
throws java.io.IOException
out - the ObjectOutput.a - the array.java.io.IOException - The write caused an IOException.public static boolean[] readBooleanArray(java.io.ObjectInput in)
throws java.io.IOException
in - the ObjectInput.java.io.IOException - The write caused an IOException.Apache Derby V10.10 Internals - Copyright © 2004,2014 The Apache Software Foundation. All Rights Reserved.