public class BinIO extends Object
This class fills some gaps in the Java API. First of all, you have two buffered, easy-to-use methods to store an object to a file or load an object from a file, and two buffered, easy-to-use methods to store an object to an output stream or to load an object from an input stream.
Second, a natural operation on sequences of primitive elements is to load or
store them in binary form using the DataInput
conventions. This
method is much more flexible than storing arrays as objects, as it allows
for partial load, partial store, and makes it easy to read the
resulting files from other languages.
For each primitive type, this class provides methods that read elements
from a DataInput
or from a filename into an array. Analogously, there are
methods that store the content of an array (fragment) or the elements
returned by an iterator to a DataOutput
or to a given filename. Files
are buffered using FastBufferedInputStream
and FastBufferedOutputStream
.
Since bytes can be read from or written to any stream, additional methods
makes it possible to load bytes from and
store bytes to a stream. Such methods
use the bulk-read methods of InputStream
and OutputStream
, but they
also include a workaround for bug #6478546.
Finally, there are useful wrapper methods that exhibit a file as a type-specific iterator.
Modifier and Type | Method and Description |
---|---|
static BooleanIterable |
asBooleanIterable(CharSequence filename)
Wraps a file given by a pathname into an iterable object.
|
static BooleanIterable |
asBooleanIterable(File file)
Wraps a file given by a
File object into an iterable object. |
static BooleanIterator |
asBooleanIterator(CharSequence filename)
Wraps a file given by a pathname into an iterator.
|
static BooleanIterator |
asBooleanIterator(DataInput dataInput)
Wraps the given data input stream into an iterator.
|
static BooleanIterator |
asBooleanIterator(File file)
Wraps a file given by a
File object into an iterator. |
static ByteIterable |
asByteIterable(CharSequence filename)
Wraps a file given by a pathname into an iterable object.
|
static ByteIterable |
asByteIterable(File file)
Wraps a file given by a
File object into an iterable object. |
static ByteIterator |
asByteIterator(CharSequence filename)
Wraps a file given by a pathname into an iterator.
|
static ByteIterator |
asByteIterator(DataInput dataInput)
Wraps the given data input stream into an iterator.
|
static ByteIterator |
asByteIterator(File file)
Wraps a file given by a
File object into an iterator. |
static CharIterable |
asCharIterable(CharSequence filename)
Wraps a file given by a pathname into an iterable object.
|
static CharIterable |
asCharIterable(File file)
Wraps a file given by a
File object into an iterable object. |
static CharIterator |
asCharIterator(CharSequence filename)
Wraps a file given by a pathname into an iterator.
|
static CharIterator |
asCharIterator(DataInput dataInput)
Wraps the given data input stream into an iterator.
|
static CharIterator |
asCharIterator(File file)
Wraps a file given by a
File object into an iterator. |
static DoubleIterable |
asDoubleIterable(CharSequence filename)
Wraps a file given by a pathname into an iterable object.
|
static DoubleIterable |
asDoubleIterable(File file)
Wraps a file given by a
File object into an iterable object. |
static DoubleIterator |
asDoubleIterator(CharSequence filename)
Wraps a file given by a pathname into an iterator.
|
static DoubleIterator |
asDoubleIterator(DataInput dataInput)
Wraps the given data input stream into an iterator.
|
static DoubleIterator |
asDoubleIterator(File file)
Wraps a file given by a
File object into an iterator. |
static FloatIterable |
asFloatIterable(CharSequence filename)
Wraps a file given by a pathname into an iterable object.
|
static FloatIterable |
asFloatIterable(File file)
Wraps a file given by a
File object into an iterable object. |
static FloatIterator |
asFloatIterator(CharSequence filename)
Wraps a file given by a pathname into an iterator.
|
static FloatIterator |
asFloatIterator(DataInput dataInput)
Wraps the given data input stream into an iterator.
|
static FloatIterator |
asFloatIterator(File file)
Wraps a file given by a
File object into an iterator. |
static IntIterable |
asIntIterable(CharSequence filename)
Wraps a file given by a pathname into an iterable object.
|
static IntIterable |
asIntIterable(File file)
Wraps a file given by a
File object into an iterable object. |
static IntIterator |
asIntIterator(CharSequence filename)
Wraps a file given by a pathname into an iterator.
|
static IntIterator |
asIntIterator(DataInput dataInput)
Wraps the given data input stream into an iterator.
|
static IntIterator |
asIntIterator(File file)
Wraps a file given by a
File object into an iterator. |
static LongIterable |
asLongIterable(CharSequence filename)
Wraps a file given by a pathname into an iterable object.
|
static LongIterable |
asLongIterable(File file)
Wraps a file given by a
File object into an iterable object. |
static LongIterator |
asLongIterator(CharSequence filename)
Wraps a file given by a pathname into an iterator.
|
static LongIterator |
asLongIterator(DataInput dataInput)
Wraps the given data input stream into an iterator.
|
static LongIterator |
asLongIterator(File file)
Wraps a file given by a
File object into an iterator. |
static ShortIterable |
asShortIterable(CharSequence filename)
Wraps a file given by a pathname into an iterable object.
|
static ShortIterable |
asShortIterable(File file)
Wraps a file given by a
File object into an iterable object. |
static ShortIterator |
asShortIterator(CharSequence filename)
Wraps a file given by a pathname into an iterator.
|
static ShortIterator |
asShortIterator(DataInput dataInput)
Wraps the given data input stream into an iterator.
|
static ShortIterator |
asShortIterator(File file)
Wraps a file given by a
File object into an iterator. |
static boolean[] |
loadBooleans(CharSequence filename)
Loads elements from a file given by a filename, storing them in a new array.
|
static int |
loadBooleans(CharSequence filename,
boolean[] array)
Loads elements from a file given by a pathname, storing them in a given array.
|
static long |
loadBooleans(CharSequence filename,
boolean[][] array)
Loads elements from a file given by a pathname, storing them in a given big array.
|
static long |
loadBooleans(CharSequence filename,
boolean[][] array,
long offset,
long length)
Loads elements from a file given by a pathname, storing them in a given big-array fragment.
|
static int |
loadBooleans(CharSequence filename,
boolean[] array,
int offset,
int length)
Loads elements from a file given by a pathname, storing them in a given array fragment.
|
static int |
loadBooleans(DataInput dataInput,
boolean[] array)
Loads elements from a given data input, storing them in a given array.
|
static long |
loadBooleans(DataInput dataInput,
boolean[][] array)
Loads elements from a given data input, storing them in a given big array.
|
static long |
loadBooleans(DataInput dataInput,
boolean[][] array,
long offset,
long length)
Loads elements from a given data input, storing them in a given big-array fragment.
|
static int |
loadBooleans(DataInput dataInput,
boolean[] array,
int offset,
int length)
Loads elements from a given data input, storing them in a given array fragment.
|
static boolean[] |
loadBooleans(File file)
Loads elements from a file given by a
File object, storing them in a new array. |
static int |
loadBooleans(File file,
boolean[] array)
Loads elements from a file given by a
File object, storing them in a given array. |
static long |
loadBooleans(File file,
boolean[][] array)
Loads elements from a file given by a
File object, storing them in a given big array. |
static long |
loadBooleans(File file,
boolean[][] array,
long offset,
long length)
Loads elements from a file given by a
File object, storing them in a given big-array fragment. |
static int |
loadBooleans(File file,
boolean[] array,
int offset,
int length)
Loads elements from a file given by a
File object, storing them in a given array fragment. |
static boolean[][] |
loadBooleansBig(CharSequence filename)
Loads elements from a file given by a filename, storing them in a new big array.
|
static boolean[][] |
loadBooleansBig(File file)
Loads elements from a file given by a
File object, storing them in a new big array. |
static byte[] |
loadBytes(CharSequence filename)
Loads elements from a file given by a filename, storing them in a new array.
|
static int |
loadBytes(CharSequence filename,
byte[] array)
Loads elements from a file given by a pathname, storing them in a given array.
|
static long |
loadBytes(CharSequence filename,
byte[][] array)
Loads elements from a file given by a pathname, storing them in a given big array.
|
static long |
loadBytes(CharSequence filename,
byte[][] array,
long offset,
long length)
Loads elements from a file given by a pathname, storing them in a given big-array fragment.
|
static int |
loadBytes(CharSequence filename,
byte[] array,
int offset,
int length)
Loads elements from a file given by a pathname, storing them in a given array fragment.
|
static int |
loadBytes(DataInput dataInput,
byte[] array)
Loads elements from a given data input, storing them in a given array.
|
static long |
loadBytes(DataInput dataInput,
byte[][] array)
Loads elements from a given data input, storing them in a given big array.
|
static long |
loadBytes(DataInput dataInput,
byte[][] array,
long offset,
long length)
Loads elements from a given data input, storing them in a given big-array fragment.
|
static int |
loadBytes(DataInput dataInput,
byte[] array,
int offset,
int length)
Loads elements from a given data input, storing them in a given array fragment.
|
static byte[] |
loadBytes(File file)
Loads elements from a file given by a
File object, storing them in a new array. |
static int |
loadBytes(File file,
byte[] array)
Loads elements from a file given by a
File object, storing them in a given array. |
static long |
loadBytes(File file,
byte[][] array)
Loads elements from a file given by a
File object, storing them in a given big array. |
static long |
loadBytes(File file,
byte[][] array,
long offset,
long length)
Loads elements from a file given by a
File object, storing them in a given big-array fragment. |
static int |
loadBytes(File file,
byte[] array,
int offset,
int length)
Loads elements from a file given by a
File object, storing them in a given array fragment. |
static int |
loadBytes(InputStream inputStream,
byte[] array)
Loads bytes from a given input stream, storing them in a given array.
|
static long |
loadBytes(InputStream inputStream,
byte[][] array)
Loads bytes from a given input stream, storing them in a given big array.
|
static long |
loadBytes(InputStream inputStream,
byte[][] array,
long offset,
long length)
Loads bytes from a given input stream, storing them in a given big-array fragment.
|
static int |
loadBytes(InputStream inputStream,
byte[] array,
int offset,
int length)
Loads bytes from a given input stream, storing them in a given array fragment.
|
static byte[][] |
loadBytesBig(CharSequence filename)
Loads elements from a file given by a filename, storing them in a new big array.
|
static byte[][] |
loadBytesBig(File file)
Loads elements from a file given by a
File object, storing them in a new big array. |
static char[] |
loadChars(CharSequence filename)
Loads elements from a file given by a filename, storing them in a new array.
|
static int |
loadChars(CharSequence filename,
char[] array)
Loads elements from a file given by a pathname, storing them in a given array.
|
static long |
loadChars(CharSequence filename,
char[][] array)
Loads elements from a file given by a pathname, storing them in a given big array.
|
static long |
loadChars(CharSequence filename,
char[][] array,
long offset,
long length)
Loads elements from a file given by a pathname, storing them in a given big-array fragment.
|
static int |
loadChars(CharSequence filename,
char[] array,
int offset,
int length)
Loads elements from a file given by a pathname, storing them in a given array fragment.
|
static int |
loadChars(DataInput dataInput,
char[] array)
Loads elements from a given data input, storing them in a given array.
|
static long |
loadChars(DataInput dataInput,
char[][] array)
Loads elements from a given data input, storing them in a given big array.
|
static long |
loadChars(DataInput dataInput,
char[][] array,
long offset,
long length)
Loads elements from a given data input, storing them in a given big-array fragment.
|
static int |
loadChars(DataInput dataInput,
char[] array,
int offset,
int length)
Loads elements from a given data input, storing them in a given array fragment.
|
static char[] |
loadChars(File file)
Loads elements from a file given by a
File object, storing them in a new array. |
static int |
loadChars(File file,
char[] array)
Loads elements from a file given by a
File object, storing them in a given array. |
static long |
loadChars(File file,
char[][] array)
Loads elements from a file given by a
File object, storing them in a given big array. |
static long |
loadChars(File file,
char[][] array,
long offset,
long length)
Loads elements from a file given by a
File object, storing them in a given big-array fragment. |
static int |
loadChars(File file,
char[] array,
int offset,
int length)
Loads elements from a file given by a
File object, storing them in a given array fragment. |
static char[][] |
loadCharsBig(CharSequence filename)
Loads elements from a file given by a filename, storing them in a new big array.
|
static char[][] |
loadCharsBig(File file)
Loads elements from a file given by a
File object, storing them in a new big array. |
static double[] |
loadDoubles(CharSequence filename)
Loads elements from a file given by a filename, storing them in a new array.
|
static int |
loadDoubles(CharSequence filename,
double[] array)
Loads elements from a file given by a pathname, storing them in a given array.
|
static long |
loadDoubles(CharSequence filename,
double[][] array)
Loads elements from a file given by a pathname, storing them in a given big array.
|
static long |
loadDoubles(CharSequence filename,
double[][] array,
long offset,
long length)
Loads elements from a file given by a pathname, storing them in a given big-array fragment.
|
static int |
loadDoubles(CharSequence filename,
double[] array,
int offset,
int length)
Loads elements from a file given by a pathname, storing them in a given array fragment.
|
static int |
loadDoubles(DataInput dataInput,
double[] array)
Loads elements from a given data input, storing them in a given array.
|
static long |
loadDoubles(DataInput dataInput,
double[][] array)
Loads elements from a given data input, storing them in a given big array.
|
static long |
loadDoubles(DataInput dataInput,
double[][] array,
long offset,
long length)
Loads elements from a given data input, storing them in a given big-array fragment.
|
static int |
loadDoubles(DataInput dataInput,
double[] array,
int offset,
int length)
Loads elements from a given data input, storing them in a given array fragment.
|
static double[] |
loadDoubles(File file)
Loads elements from a file given by a
File object, storing them in a new array. |
static int |
loadDoubles(File file,
double[] array)
Loads elements from a file given by a
File object, storing them in a given array. |
static long |
loadDoubles(File file,
double[][] array)
Loads elements from a file given by a
File object, storing them in a given big array. |
static long |
loadDoubles(File file,
double[][] array,
long offset,
long length)
Loads elements from a file given by a
File object, storing them in a given big-array fragment. |
static int |
loadDoubles(File file,
double[] array,
int offset,
int length)
Loads elements from a file given by a
File object, storing them in a given array fragment. |
static double[][] |
loadDoublesBig(CharSequence filename)
Loads elements from a file given by a filename, storing them in a new big array.
|
static double[][] |
loadDoublesBig(File file)
Loads elements from a file given by a
File object, storing them in a new big array. |
static float[] |
loadFloats(CharSequence filename)
Loads elements from a file given by a filename, storing them in a new array.
|
static int |
loadFloats(CharSequence filename,
float[] array)
Loads elements from a file given by a pathname, storing them in a given array.
|
static long |
loadFloats(CharSequence filename,
float[][] array)
Loads elements from a file given by a pathname, storing them in a given big array.
|
static long |
loadFloats(CharSequence filename,
float[][] array,
long offset,
long length)
Loads elements from a file given by a pathname, storing them in a given big-array fragment.
|
static int |
loadFloats(CharSequence filename,
float[] array,
int offset,
int length)
Loads elements from a file given by a pathname, storing them in a given array fragment.
|
static int |
loadFloats(DataInput dataInput,
float[] array)
Loads elements from a given data input, storing them in a given array.
|
static long |
loadFloats(DataInput dataInput,
float[][] array)
Loads elements from a given data input, storing them in a given big array.
|
static long |
loadFloats(DataInput dataInput,
float[][] array,
long offset,
long length)
Loads elements from a given data input, storing them in a given big-array fragment.
|
static int |
loadFloats(DataInput dataInput,
float[] array,
int offset,
int length)
Loads elements from a given data input, storing them in a given array fragment.
|
static float[] |
loadFloats(File file)
Loads elements from a file given by a
File object, storing them in a new array. |
static int |
loadFloats(File file,
float[] array)
Loads elements from a file given by a
File object, storing them in a given array. |
static long |
loadFloats(File file,
float[][] array)
Loads elements from a file given by a
File object, storing them in a given big array. |
static long |
loadFloats(File file,
float[][] array,
long offset,
long length)
Loads elements from a file given by a
File object, storing them in a given big-array fragment. |
static int |
loadFloats(File file,
float[] array,
int offset,
int length)
Loads elements from a file given by a
File object, storing them in a given array fragment. |
static float[][] |
loadFloatsBig(CharSequence filename)
Loads elements from a file given by a filename, storing them in a new big array.
|
static float[][] |
loadFloatsBig(File file)
Loads elements from a file given by a
File object, storing them in a new big array. |
static int[] |
loadInts(CharSequence filename)
Loads elements from a file given by a filename, storing them in a new array.
|
static int |
loadInts(CharSequence filename,
int[] array)
Loads elements from a file given by a pathname, storing them in a given array.
|
static long |
loadInts(CharSequence filename,
int[][] array)
Loads elements from a file given by a pathname, storing them in a given big array.
|
static long |
loadInts(CharSequence filename,
int[][] array,
long offset,
long length)
Loads elements from a file given by a pathname, storing them in a given big-array fragment.
|
static int |
loadInts(CharSequence filename,
int[] array,
int offset,
int length)
Loads elements from a file given by a pathname, storing them in a given array fragment.
|
static int |
loadInts(DataInput dataInput,
int[] array)
Loads elements from a given data input, storing them in a given array.
|
static long |
loadInts(DataInput dataInput,
int[][] array)
Loads elements from a given data input, storing them in a given big array.
|
static long |
loadInts(DataInput dataInput,
int[][] array,
long offset,
long length)
Loads elements from a given data input, storing them in a given big-array fragment.
|
static int |
loadInts(DataInput dataInput,
int[] array,
int offset,
int length)
Loads elements from a given data input, storing them in a given array fragment.
|
static int[] |
loadInts(File file)
Loads elements from a file given by a
File object, storing them in a new array. |
static int |
loadInts(File file,
int[] array)
Loads elements from a file given by a
File object, storing them in a given array. |
static long |
loadInts(File file,
int[][] array)
Loads elements from a file given by a
File object, storing them in a given big array. |
static long |
loadInts(File file,
int[][] array,
long offset,
long length)
Loads elements from a file given by a
File object, storing them in a given big-array fragment. |
static int |
loadInts(File file,
int[] array,
int offset,
int length)
Loads elements from a file given by a
File object, storing them in a given array fragment. |
static int[][] |
loadIntsBig(CharSequence filename)
Loads elements from a file given by a filename, storing them in a new big array.
|
static int[][] |
loadIntsBig(File file)
Loads elements from a file given by a
File object, storing them in a new big array. |
static long[] |
loadLongs(CharSequence filename)
Loads elements from a file given by a filename, storing them in a new array.
|
static int |
loadLongs(CharSequence filename,
long[] array)
Loads elements from a file given by a pathname, storing them in a given array.
|
static long |
loadLongs(CharSequence filename,
long[][] array)
Loads elements from a file given by a pathname, storing them in a given big array.
|
static long |
loadLongs(CharSequence filename,
long[][] array,
long offset,
long length)
Loads elements from a file given by a pathname, storing them in a given big-array fragment.
|
static int |
loadLongs(CharSequence filename,
long[] array,
int offset,
int length)
Loads elements from a file given by a pathname, storing them in a given array fragment.
|
static int |
loadLongs(DataInput dataInput,
long[] array)
Loads elements from a given data input, storing them in a given array.
|
static long |
loadLongs(DataInput dataInput,
long[][] array)
Loads elements from a given data input, storing them in a given big array.
|
static long |
loadLongs(DataInput dataInput,
long[][] array,
long offset,
long length)
Loads elements from a given data input, storing them in a given big-array fragment.
|
static int |
loadLongs(DataInput dataInput,
long[] array,
int offset,
int length)
Loads elements from a given data input, storing them in a given array fragment.
|
static long[] |
loadLongs(File file)
Loads elements from a file given by a
File object, storing them in a new array. |
static int |
loadLongs(File file,
long[] array)
Loads elements from a file given by a
File object, storing them in a given array. |
static long |
loadLongs(File file,
long[][] array)
Loads elements from a file given by a
File object, storing them in a given big array. |
static long |
loadLongs(File file,
long[][] array,
long offset,
long length)
Loads elements from a file given by a
File object, storing them in a given big-array fragment. |
static int |
loadLongs(File file,
long[] array,
int offset,
int length)
Loads elements from a file given by a
File object, storing them in a given array fragment. |
static long[][] |
loadLongsBig(CharSequence filename)
Loads elements from a file given by a filename, storing them in a new big array.
|
static long[][] |
loadLongsBig(File file)
Loads elements from a file given by a
File object, storing them in a new big array. |
static Object |
loadObject(CharSequence filename)
Loads an object from a file given by a pathname.
|
static Object |
loadObject(File file)
Loads an object from a file given by a
File object. |
static Object |
loadObject(InputStream s)
Loads an object from a given input stream.
|
static short[] |
loadShorts(CharSequence filename)
Loads elements from a file given by a filename, storing them in a new array.
|
static int |
loadShorts(CharSequence filename,
short[] array)
Loads elements from a file given by a pathname, storing them in a given array.
|
static long |
loadShorts(CharSequence filename,
short[][] array)
Loads elements from a file given by a pathname, storing them in a given big array.
|
static long |
loadShorts(CharSequence filename,
short[][] array,
long offset,
long length)
Loads elements from a file given by a pathname, storing them in a given big-array fragment.
|
static int |
loadShorts(CharSequence filename,
short[] array,
int offset,
int length)
Loads elements from a file given by a pathname, storing them in a given array fragment.
|
static int |
loadShorts(DataInput dataInput,
short[] array)
Loads elements from a given data input, storing them in a given array.
|
static long |
loadShorts(DataInput dataInput,
short[][] array)
Loads elements from a given data input, storing them in a given big array.
|
static long |
loadShorts(DataInput dataInput,
short[][] array,
long offset,
long length)
Loads elements from a given data input, storing them in a given big-array fragment.
|
static int |
loadShorts(DataInput dataInput,
short[] array,
int offset,
int length)
Loads elements from a given data input, storing them in a given array fragment.
|
static short[] |
loadShorts(File file)
Loads elements from a file given by a
File object, storing them in a new array. |
static int |
loadShorts(File file,
short[] array)
Loads elements from a file given by a
File object, storing them in a given array. |
static long |
loadShorts(File file,
short[][] array)
Loads elements from a file given by a
File object, storing them in a given big array. |
static long |
loadShorts(File file,
short[][] array,
long offset,
long length)
Loads elements from a file given by a
File object, storing them in a given big-array fragment. |
static int |
loadShorts(File file,
short[] array,
int offset,
int length)
Loads elements from a file given by a
File object, storing them in a given array fragment. |
static short[][] |
loadShortsBig(CharSequence filename)
Loads elements from a file given by a filename, storing them in a new big array.
|
static short[][] |
loadShortsBig(File file)
Loads elements from a file given by a
File object, storing them in a new big array. |
static void |
storeBooleans(boolean[][] array,
CharSequence filename)
Stores a big array to a file given by a pathname.
|
static void |
storeBooleans(boolean[][] array,
DataOutput dataOutput)
Stores a big array to a given data output.
|
static void |
storeBooleans(boolean[][] array,
File file)
Stores an array to a file given by a
File object. |
static void |
storeBooleans(boolean[][] array,
long offset,
long length,
CharSequence filename)
Stores a big-array fragment to a file given by a pathname.
|
static void |
storeBooleans(boolean[][] array,
long offset,
long length,
DataOutput dataOutput)
Stores an array fragment to a given data output.
|
static void |
storeBooleans(boolean[][] array,
long offset,
long length,
File file)
Stores a big-array fragment to a file given by a
File object. |
static void |
storeBooleans(boolean[] array,
CharSequence filename)
Stores an array to a file given by a pathname.
|
static void |
storeBooleans(boolean[] array,
DataOutput dataOutput)
Stores an array to a given data output.
|
static void |
storeBooleans(boolean[] array,
File file)
Stores an array to a file given by a
File object. |
static void |
storeBooleans(boolean[] array,
int offset,
int length,
CharSequence filename)
Stores an array fragment to a file given by a pathname.
|
static void |
storeBooleans(boolean[] array,
int offset,
int length,
DataOutput dataOutput)
Stores an array fragment to a given data output.
|
static void |
storeBooleans(boolean[] array,
int offset,
int length,
File file)
Stores an array fragment to a file given by a
File object. |
static void |
storeBooleans(BooleanIterator i,
CharSequence filename)
Stores the element returned by an iterator to a file given by a pathname.
|
static void |
storeBooleans(BooleanIterator i,
DataOutput dataOutput)
Stores the element returned by an iterator to a given data output.
|
static void |
storeBooleans(BooleanIterator i,
File file)
Stores the element returned by an iterator to a file given by a
File object. |
static void |
storeBytes(byte[][] array,
CharSequence filename)
Stores a big array to a file given by a pathname.
|
static void |
storeBytes(byte[][] array,
DataOutput dataOutput)
Stores a big array to a given data output.
|
static void |
storeBytes(byte[][] array,
File file)
Stores an array to a file given by a
File object. |
static void |
storeBytes(byte[][] array,
long offset,
long length,
CharSequence filename)
Stores a big-array fragment to a file given by a pathname.
|
static void |
storeBytes(byte[][] array,
long offset,
long length,
DataOutput dataOutput)
Stores an array fragment to a given data output.
|
static void |
storeBytes(byte[][] array,
long offset,
long length,
File file)
Stores a big-array fragment to a file given by a
File object. |
static void |
storeBytes(byte[][] array,
long offset,
long length,
OutputStream outputStream)
Stores a big-array fragment to a given output stream.
|
static void |
storeBytes(byte[][] array,
OutputStream outputStream)
Stores a big array to a given output stream.
|
static void |
storeBytes(byte[] array,
CharSequence filename)
Stores an array to a file given by a pathname.
|
static void |
storeBytes(byte[] array,
DataOutput dataOutput)
Stores an array to a given data output.
|
static void |
storeBytes(byte[] array,
File file)
Stores an array to a file given by a
File object. |
static void |
storeBytes(byte[] array,
int offset,
int length,
CharSequence filename)
Stores an array fragment to a file given by a pathname.
|
static void |
storeBytes(byte[] array,
int offset,
int length,
DataOutput dataOutput)
Stores an array fragment to a given data output.
|
static void |
storeBytes(byte[] array,
int offset,
int length,
File file)
Stores an array fragment to a file given by a
File object. |
static void |
storeBytes(byte[] array,
int offset,
int length,
OutputStream outputStream)
Stores an array fragment to a given output stream.
|
static void |
storeBytes(byte[] array,
OutputStream outputStream)
Stores an array to a given output stream.
|
static void |
storeBytes(ByteIterator i,
CharSequence filename)
Stores the element returned by an iterator to a file given by a pathname.
|
static void |
storeBytes(ByteIterator i,
DataOutput dataOutput)
Stores the element returned by an iterator to a given data output.
|
static void |
storeBytes(ByteIterator i,
File file)
Stores the element returned by an iterator to a file given by a
File object. |
static void |
storeChars(char[][] array,
CharSequence filename)
Stores a big array to a file given by a pathname.
|
static void |
storeChars(char[][] array,
DataOutput dataOutput)
Stores a big array to a given data output.
|
static void |
storeChars(char[][] array,
File file)
Stores an array to a file given by a
File object. |
static void |
storeChars(char[][] array,
long offset,
long length,
CharSequence filename)
Stores a big-array fragment to a file given by a pathname.
|
static void |
storeChars(char[][] array,
long offset,
long length,
DataOutput dataOutput)
Stores an array fragment to a given data output.
|
static void |
storeChars(char[][] array,
long offset,
long length,
File file)
Stores a big-array fragment to a file given by a
File object. |
static void |
storeChars(char[] array,
CharSequence filename)
Stores an array to a file given by a pathname.
|
static void |
storeChars(char[] array,
DataOutput dataOutput)
Stores an array to a given data output.
|
static void |
storeChars(char[] array,
File file)
Stores an array to a file given by a
File object. |
static void |
storeChars(char[] array,
int offset,
int length,
CharSequence filename)
Stores an array fragment to a file given by a pathname.
|
static void |
storeChars(char[] array,
int offset,
int length,
DataOutput dataOutput)
Stores an array fragment to a given data output.
|
static void |
storeChars(char[] array,
int offset,
int length,
File file)
Stores an array fragment to a file given by a
File object. |
static void |
storeChars(CharIterator i,
CharSequence filename)
Stores the element returned by an iterator to a file given by a pathname.
|
static void |
storeChars(CharIterator i,
DataOutput dataOutput)
Stores the element returned by an iterator to a given data output.
|
static void |
storeChars(CharIterator i,
File file)
Stores the element returned by an iterator to a file given by a
File object. |
static void |
storeDoubles(double[][] array,
CharSequence filename)
Stores a big array to a file given by a pathname.
|
static void |
storeDoubles(double[][] array,
DataOutput dataOutput)
Stores a big array to a given data output.
|
static void |
storeDoubles(double[][] array,
File file)
Stores an array to a file given by a
File object. |
static void |
storeDoubles(double[][] array,
long offset,
long length,
CharSequence filename)
Stores a big-array fragment to a file given by a pathname.
|
static void |
storeDoubles(double[][] array,
long offset,
long length,
DataOutput dataOutput)
Stores an array fragment to a given data output.
|
static void |
storeDoubles(double[][] array,
long offset,
long length,
File file)
Stores a big-array fragment to a file given by a
File object. |
static void |
storeDoubles(double[] array,
CharSequence filename)
Stores an array to a file given by a pathname.
|
static void |
storeDoubles(double[] array,
DataOutput dataOutput)
Stores an array to a given data output.
|
static void |
storeDoubles(double[] array,
File file)
Stores an array to a file given by a
File object. |
static void |
storeDoubles(double[] array,
int offset,
int length,
CharSequence filename)
Stores an array fragment to a file given by a pathname.
|
static void |
storeDoubles(double[] array,
int offset,
int length,
DataOutput dataOutput)
Stores an array fragment to a given data output.
|
static void |
storeDoubles(double[] array,
int offset,
int length,
File file)
Stores an array fragment to a file given by a
File object. |
static void |
storeDoubles(DoubleIterator i,
CharSequence filename)
Stores the element returned by an iterator to a file given by a pathname.
|
static void |
storeDoubles(DoubleIterator i,
DataOutput dataOutput)
Stores the element returned by an iterator to a given data output.
|
static void |
storeDoubles(DoubleIterator i,
File file)
Stores the element returned by an iterator to a file given by a
File object. |
static void |
storeFloats(float[][] array,
CharSequence filename)
Stores a big array to a file given by a pathname.
|
static void |
storeFloats(float[][] array,
DataOutput dataOutput)
Stores a big array to a given data output.
|
static void |
storeFloats(float[][] array,
File file)
Stores an array to a file given by a
File object. |
static void |
storeFloats(float[][] array,
long offset,
long length,
CharSequence filename)
Stores a big-array fragment to a file given by a pathname.
|
static void |
storeFloats(float[][] array,
long offset,
long length,
DataOutput dataOutput)
Stores an array fragment to a given data output.
|
static void |
storeFloats(float[][] array,
long offset,
long length,
File file)
Stores a big-array fragment to a file given by a
File object. |
static void |
storeFloats(float[] array,
CharSequence filename)
Stores an array to a file given by a pathname.
|
static void |
storeFloats(float[] array,
DataOutput dataOutput)
Stores an array to a given data output.
|
static void |
storeFloats(float[] array,
File file)
Stores an array to a file given by a
File object. |
static void |
storeFloats(float[] array,
int offset,
int length,
CharSequence filename)
Stores an array fragment to a file given by a pathname.
|
static void |
storeFloats(float[] array,
int offset,
int length,
DataOutput dataOutput)
Stores an array fragment to a given data output.
|
static void |
storeFloats(float[] array,
int offset,
int length,
File file)
Stores an array fragment to a file given by a
File object. |
static void |
storeFloats(FloatIterator i,
CharSequence filename)
Stores the element returned by an iterator to a file given by a pathname.
|
static void |
storeFloats(FloatIterator i,
DataOutput dataOutput)
Stores the element returned by an iterator to a given data output.
|
static void |
storeFloats(FloatIterator i,
File file)
Stores the element returned by an iterator to a file given by a
File object. |
static void |
storeInts(int[][] array,
CharSequence filename)
Stores a big array to a file given by a pathname.
|
static void |
storeInts(int[][] array,
DataOutput dataOutput)
Stores a big array to a given data output.
|
static void |
storeInts(int[][] array,
File file)
Stores an array to a file given by a
File object. |
static void |
storeInts(int[][] array,
long offset,
long length,
CharSequence filename)
Stores a big-array fragment to a file given by a pathname.
|
static void |
storeInts(int[][] array,
long offset,
long length,
DataOutput dataOutput)
Stores an array fragment to a given data output.
|
static void |
storeInts(int[][] array,
long offset,
long length,
File file)
Stores a big-array fragment to a file given by a
File object. |
static void |
storeInts(int[] array,
CharSequence filename)
Stores an array to a file given by a pathname.
|
static void |
storeInts(int[] array,
DataOutput dataOutput)
Stores an array to a given data output.
|
static void |
storeInts(int[] array,
File file)
Stores an array to a file given by a
File object. |
static void |
storeInts(int[] array,
int offset,
int length,
CharSequence filename)
Stores an array fragment to a file given by a pathname.
|
static void |
storeInts(int[] array,
int offset,
int length,
DataOutput dataOutput)
Stores an array fragment to a given data output.
|
static void |
storeInts(int[] array,
int offset,
int length,
File file)
Stores an array fragment to a file given by a
File object. |
static void |
storeInts(IntIterator i,
CharSequence filename)
Stores the element returned by an iterator to a file given by a pathname.
|
static void |
storeInts(IntIterator i,
DataOutput dataOutput)
Stores the element returned by an iterator to a given data output.
|
static void |
storeInts(IntIterator i,
File file)
Stores the element returned by an iterator to a file given by a
File object. |
static void |
storeLongs(long[][] array,
CharSequence filename)
Stores a big array to a file given by a pathname.
|
static void |
storeLongs(long[][] array,
DataOutput dataOutput)
Stores a big array to a given data output.
|
static void |
storeLongs(long[][] array,
File file)
Stores an array to a file given by a
File object. |
static void |
storeLongs(long[][] array,
long offset,
long length,
CharSequence filename)
Stores a big-array fragment to a file given by a pathname.
|
static void |
storeLongs(long[][] array,
long offset,
long length,
DataOutput dataOutput)
Stores an array fragment to a given data output.
|
static void |
storeLongs(long[][] array,
long offset,
long length,
File file)
Stores a big-array fragment to a file given by a
File object. |
static void |
storeLongs(long[] array,
CharSequence filename)
Stores an array to a file given by a pathname.
|
static void |
storeLongs(long[] array,
DataOutput dataOutput)
Stores an array to a given data output.
|
static void |
storeLongs(long[] array,
File file)
Stores an array to a file given by a
File object. |
static void |
storeLongs(long[] array,
int offset,
int length,
CharSequence filename)
Stores an array fragment to a file given by a pathname.
|
static void |
storeLongs(long[] array,
int offset,
int length,
DataOutput dataOutput)
Stores an array fragment to a given data output.
|
static void |
storeLongs(long[] array,
int offset,
int length,
File file)
Stores an array fragment to a file given by a
File object. |
static void |
storeLongs(LongIterator i,
CharSequence filename)
Stores the element returned by an iterator to a file given by a pathname.
|
static void |
storeLongs(LongIterator i,
DataOutput dataOutput)
Stores the element returned by an iterator to a given data output.
|
static void |
storeLongs(LongIterator i,
File file)
Stores the element returned by an iterator to a file given by a
File object. |
static void |
storeObject(Object o,
CharSequence filename)
Stores an object in a file given by a pathname.
|
static void |
storeObject(Object o,
File file)
Stores an object in a file given by a
File object. |
static void |
storeObject(Object o,
OutputStream s)
Stores an object in a given output stream.
|
static void |
storeShorts(short[][] array,
CharSequence filename)
Stores a big array to a file given by a pathname.
|
static void |
storeShorts(short[][] array,
DataOutput dataOutput)
Stores a big array to a given data output.
|
static void |
storeShorts(short[][] array,
File file)
Stores an array to a file given by a
File object. |
static void |
storeShorts(short[][] array,
long offset,
long length,
CharSequence filename)
Stores a big-array fragment to a file given by a pathname.
|
static void |
storeShorts(short[][] array,
long offset,
long length,
DataOutput dataOutput)
Stores an array fragment to a given data output.
|
static void |
storeShorts(short[][] array,
long offset,
long length,
File file)
Stores a big-array fragment to a file given by a
File object. |
static void |
storeShorts(short[] array,
CharSequence filename)
Stores an array to a file given by a pathname.
|
static void |
storeShorts(short[] array,
DataOutput dataOutput)
Stores an array to a given data output.
|
static void |
storeShorts(short[] array,
File file)
Stores an array to a file given by a
File object. |
static void |
storeShorts(short[] array,
int offset,
int length,
CharSequence filename)
Stores an array fragment to a file given by a pathname.
|
static void |
storeShorts(short[] array,
int offset,
int length,
DataOutput dataOutput)
Stores an array fragment to a given data output.
|
static void |
storeShorts(short[] array,
int offset,
int length,
File file)
Stores an array fragment to a file given by a
File object. |
static void |
storeShorts(ShortIterator i,
CharSequence filename)
Stores the element returned by an iterator to a file given by a pathname.
|
static void |
storeShorts(ShortIterator i,
DataOutput dataOutput)
Stores the element returned by an iterator to a given data output.
|
static void |
storeShorts(ShortIterator i,
File file)
Stores the element returned by an iterator to a file given by a
File object. |
public static void storeObject(Object o, File file) throws IOException
File
object.o
- an object.file
- a file.IOException
loadObject(File)
public static void storeObject(Object o, CharSequence filename) throws IOException
o
- an object.filename
- a filename.IOException
loadObject(CharSequence)
public static Object loadObject(File file) throws IOException, ClassNotFoundException
File
object.file
- a file.IOException
ClassNotFoundException
storeObject(Object, File)
public static Object loadObject(CharSequence filename) throws IOException, ClassNotFoundException
filename
- a filename.IOException
ClassNotFoundException
storeObject(Object, CharSequence)
public static void storeObject(Object o, OutputStream s) throws IOException
s
, and flushes all wrappers after
calling writeObject()
, but does not close s
.o
- an object.s
- an output stream.IOException
loadObject(InputStream)
public static Object loadObject(InputStream s) throws IOException, ClassNotFoundException
Warning: this method buffers the input stream. As a consequence,
subsequent reads from the same stream may not give the desired results, as bytes
may have been read by the internal buffer, but not used by readObject()
.
This is a feature, as this method is targeted at one-shot reading from streams,
e.g., reading exactly one object from System.in
.
s
- an input stream.IOException
ClassNotFoundException
storeObject(Object, OutputStream)
public static int loadBooleans(DataInput dataInput, boolean[] array, int offset, int length) throws IOException
dataInput
- a data input.array
- an array which will be filled with data from dataInput
.offset
- the index of the first element of array
to be filled.length
- the number of elements of array
to be filled.dataInput
(it might be less than length
if dataInput
ends).IOException
public static int loadBooleans(DataInput dataInput, boolean[] array) throws IOException
dataInput
- a data input.array
- an array which will be filled with data from dataInput
.dataInput
(it might be less than the array length if dataInput
ends).IOException
public static int loadBooleans(File file, boolean[] array, int offset, int length) throws IOException
File
object, storing them in a given array fragment.file
- a file.array
- an array which will be filled with data from the specified file.offset
- the index of the first element of array
to be filled.length
- the number of elements of array
to be filled.length
if the file is too short).IOException
public static int loadBooleans(CharSequence filename, boolean[] array, int offset, int length) throws IOException
filename
- a filename.array
- an array which will be filled with data from the specified file.offset
- the index of the first element of array
to be filled.length
- the number of elements of array
to be filled.length
if the file is too short).IOException
public static int loadBooleans(File file, boolean[] array) throws IOException
File
object, storing them in a given array.file
- a file.array
- an array which will be filled with data from the specified file.IOException
public static int loadBooleans(CharSequence filename, boolean[] array) throws IOException
filename
- a filename.array
- an array which will be filled with data from the specified file.IOException
public static boolean[] loadBooleans(File file) throws IOException
File
object, storing them in a new array.
Note that the length of the returned array will be computed dividing the specified file size by the number of bytes used to represent each element.
file
- a file.IOException
public static boolean[] loadBooleans(CharSequence filename) throws IOException
Note that the length of the returned array will be computed dividing the specified file size by the number of bytes used to represent each element.
filename
- a filename.IOException
public static void storeBooleans(boolean[] array, int offset, int length, DataOutput dataOutput) throws IOException
array
- an array whose elements will be written to dataOutput
.offset
- the index of the first element of array
to be written.length
- the number of elements of array
to be written.dataOutput
- a data output.IOException
public static void storeBooleans(boolean[] array, DataOutput dataOutput) throws IOException
array
- an array whose elements will be written to dataOutput
.dataOutput
- a data output.IOException
public static void storeBooleans(boolean[] array, int offset, int length, File file) throws IOException
File
object.array
- an array whose elements will be written to filename
.offset
- the index of the first element of array
to be written.length
- the number of elements of array
to be written.file
- a file.IOException
public static void storeBooleans(boolean[] array, int offset, int length, CharSequence filename) throws IOException
array
- an array whose elements will be written to filename
.offset
- the index of the first element of array
to be written.length
- the number of elements of array
to be written.filename
- a filename.IOException
public static void storeBooleans(boolean[] array, File file) throws IOException
File
object.array
- an array whose elements will be written to filename
.file
- a file.IOException
public static void storeBooleans(boolean[] array, CharSequence filename) throws IOException
array
- an array whose elements will be written to filename
.filename
- a filename.IOException
public static long loadBooleans(DataInput dataInput, boolean[][] array, long offset, long length) throws IOException
dataInput
- a data input.array
- a big array which will be filled with data from dataInput
.offset
- the index of the first element of bigArray
to be filled.length
- the number of elements of bigArray
to be filled.dataInput
(it might be less than length
if dataInput
ends).IOException
public static long loadBooleans(DataInput dataInput, boolean[][] array) throws IOException
dataInput
- a data input.array
- a big array which will be filled with data from dataInput
.dataInput
(it might be less than the array length if dataInput
ends).IOException
public static long loadBooleans(File file, boolean[][] array, long offset, long length) throws IOException
File
object, storing them in a given big-array fragment.file
- a file.array
- a big array which will be filled with data from the specified file.offset
- the index of the first element of array
to be filled.length
- the number of elements of array
to be filled.length
if the file is too short).IOException
public static long loadBooleans(CharSequence filename, boolean[][] array, long offset, long length) throws IOException
filename
- a filename.array
- an array which will be filled with data from the specified file.offset
- the index of the first element of array
to be filled.length
- the number of elements of array
to be filled.length
if the file is too short).IOException
public static long loadBooleans(File file, boolean[][] array) throws IOException
File
object, storing them in a given big array.file
- a file.array
- a big array which will be filled with data from the specified file.IOException
public static long loadBooleans(CharSequence filename, boolean[][] array) throws IOException
filename
- a filename.array
- a big array which will be filled with data from the specified file.IOException
public static boolean[][] loadBooleansBig(File file) throws IOException
File
object, storing them in a new big array.
Note that the length of the returned big array will be computed dividing the specified file size by the number of bytes used to represent each element.
file
- a file.IOException
public static boolean[][] loadBooleansBig(CharSequence filename) throws IOException
Note that the length of the returned big array will be computed dividing the specified file size by the number of bytes used to represent each element.
filename
- a filename.IOException
public static void storeBooleans(boolean[][] array, long offset, long length, DataOutput dataOutput) throws IOException
array
- an array whose elements will be written to dataOutput
.offset
- the index of the first element of array
to be written.length
- the number of elements of array
to be written.dataOutput
- a data output.IOException
public static void storeBooleans(boolean[][] array, DataOutput dataOutput) throws IOException
array
- a big array whose elements will be written to dataOutput
.dataOutput
- a data output.IOException
public static void storeBooleans(boolean[][] array, long offset, long length, File file) throws IOException
File
object.array
- a big array whose elements will be written to filename
.offset
- the index of the first element of array
to be written.length
- the number of elements of array
to be written.file
- a file.IOException
public static void storeBooleans(boolean[][] array, long offset, long length, CharSequence filename) throws IOException
array
- a big array whose elements will be written to filename
.offset
- the index of the first element of array
to be written.length
- the number of elements of array
to be written.filename
- a filename.IOException
public static void storeBooleans(boolean[][] array, File file) throws IOException
File
object.array
- an array whose elements will be written to filename
.file
- a file.IOException
public static void storeBooleans(boolean[][] array, CharSequence filename) throws IOException
array
- a big array whose elements will be written to filename
.filename
- a filename.IOException
public static void storeBooleans(BooleanIterator i, DataOutput dataOutput) throws IOException
i
- an iterator whose output will be written to dataOutput
.dataOutput
- a filename.IOException
public static void storeBooleans(BooleanIterator i, File file) throws IOException
File
object.i
- an iterator whose output will be written to filename
.file
- a file.IOException
public static void storeBooleans(BooleanIterator i, CharSequence filename) throws IOException
i
- an iterator whose output will be written to filename
.filename
- a filename.IOException
public static BooleanIterator asBooleanIterator(DataInput dataInput)
dataInput
- a data input.public static BooleanIterator asBooleanIterator(File file) throws IOException
File
object into an iterator.file
- a file.IOException
public static BooleanIterator asBooleanIterator(CharSequence filename) throws IOException
filename
- a filename.IOException
public static BooleanIterable asBooleanIterable(File file)
File
object into an iterable object.file
- a file.public static BooleanIterable asBooleanIterable(CharSequence filename)
filename
- a filename.public static int loadBytes(InputStream inputStream, byte[] array, int offset, int length) throws IOException
Note that this method is going to be significantly faster than loadBytes(DataInput,byte[],int,int)
as it uses InputStream
's bulk-read methods.
inputStream
- an input stream.array
- an array which will be filled with data from inputStream
.offset
- the index of the first element of array
to be filled.length
- the number of elements of array
to be filled.inputStream
(it might be less than length
if inputStream
ends).IOException
public static int loadBytes(InputStream inputStream, byte[] array) throws IOException
Note that this method is going to be significantly faster than loadBytes(DataInput,byte[])
as it uses InputStream
's bulk-read methods.
inputStream
- an input stream.array
- an array which will be filled with data from inputStream
.inputStream
(it might be less than the array length if inputStream
ends).IOException
public static void storeBytes(byte[] array, int offset, int length, OutputStream outputStream) throws IOException
Note that this method is going to be significantly faster than storeBytes(byte[],int,int,DataOutput)
as it uses OutputStream
's bulk-read methods.
array
- an array whose elements will be written to outputStream
.offset
- the index of the first element of array
to be written.length
- the number of elements of array
to be written.outputStream
- an output stream.IOException
public static void storeBytes(byte[] array, OutputStream outputStream) throws IOException
Note that this method is going to be significantly faster than storeBytes(byte[],DataOutput)
as it uses OutputStream
's bulk-read methods.
array
- an array whose elements will be written to outputStream
.outputStream
- an output stream.IOException
public static long loadBytes(InputStream inputStream, byte[][] array, long offset, long length) throws IOException
Note that this method is going to be significantly faster than loadBytes(DataInput,byte[][],long,long)
as it uses InputStream
's bulk-read methods.
inputStream
- an input stream.array
- a big array which will be filled with data from inputStream
.offset
- the index of the first element of array
to be filled.length
- the number of elements of array
to be filled.inputStream
(it might be less than length
if inputStream
ends).IOException
public static long loadBytes(InputStream inputStream, byte[][] array) throws IOException
Note that this method is going to be significantly faster than loadBytes(DataInput,byte[][])
as it uses InputStream
's bulk-read methods.
inputStream
- an input stream.array
- a big array which will be filled with data from inputStream
.inputStream
(it might be less than the array length if inputStream
ends).IOException
public static void storeBytes(byte[][] array, long offset, long length, OutputStream outputStream) throws IOException
Note that this method is going to be significantly faster than storeBytes(byte[][],long,long,DataOutput)
as it uses OutputStream
's bulk-read methods.
array
- a big array whose elements will be written to outputStream
.offset
- the index of the first element of array
to be written.length
- the number of elements of array
to be written.outputStream
- an output stream.IOException
public static void storeBytes(byte[][] array, OutputStream outputStream) throws IOException
Note that this method is going to be significantly faster than storeBytes(byte[][],DataOutput)
as it uses OutputStream
's bulk-read methods.
array
- a big array whose elements will be written to outputStream
.outputStream
- an output stream.IOException
public static int loadBytes(DataInput dataInput, byte[] array, int offset, int length) throws IOException
dataInput
- a data input.array
- an array which will be filled with data from dataInput
.offset
- the index of the first element of array
to be filled.length
- the number of elements of array
to be filled.dataInput
(it might be less than length
if dataInput
ends).IOException
public static int loadBytes(DataInput dataInput, byte[] array) throws IOException
dataInput
- a data input.array
- an array which will be filled with data from dataInput
.dataInput
(it might be less than the array length if dataInput
ends).IOException
public static int loadBytes(File file, byte[] array, int offset, int length) throws IOException
File
object, storing them in a given array fragment.file
- a file.array
- an array which will be filled with data from the specified file.offset
- the index of the first element of array
to be filled.length
- the number of elements of array
to be filled.length
if the file is too short).IOException
public static int loadBytes(CharSequence filename, byte[] array, int offset, int length) throws IOException
filename
- a filename.array
- an array which will be filled with data from the specified file.offset
- the index of the first element of array
to be filled.length
- the number of elements of array
to be filled.length
if the file is too short).IOException
public static int loadBytes(File file, byte[] array) throws IOException
File
object, storing them in a given array.file
- a file.array
- an array which will be filled with data from the specified file.IOException
public static int loadBytes(CharSequence filename, byte[] array) throws IOException
filename
- a filename.array
- an array which will be filled with data from the specified file.IOException
public static byte[] loadBytes(File file) throws IOException
File
object, storing them in a new array.
Note that the length of the returned array will be computed dividing the specified file size by the number of bytes used to represent each element.
file
- a file.IOException
public static byte[] loadBytes(CharSequence filename) throws IOException
Note that the length of the returned array will be computed dividing the specified file size by the number of bytes used to represent each element.
filename
- a filename.IOException
public static void storeBytes(byte[] array, int offset, int length, DataOutput dataOutput) throws IOException
array
- an array whose elements will be written to dataOutput
.offset
- the index of the first element of array
to be written.length
- the number of elements of array
to be written.dataOutput
- a data output.IOException
public static void storeBytes(byte[] array, DataOutput dataOutput) throws IOException
array
- an array whose elements will be written to dataOutput
.dataOutput
- a data output.IOException
public static void storeBytes(byte[] array, int offset, int length, File file) throws IOException
File
object.array
- an array whose elements will be written to filename
.offset
- the index of the first element of array
to be written.length
- the number of elements of array
to be written.file
- a file.IOException
public static void storeBytes(byte[] array, int offset, int length, CharSequence filename) throws IOException
array
- an array whose elements will be written to filename
.offset
- the index of the first element of array
to be written.length
- the number of elements of array
to be written.filename
- a filename.IOException
public static void storeBytes(byte[] array, File file) throws IOException
File
object.array
- an array whose elements will be written to filename
.file
- a file.IOException
public static void storeBytes(byte[] array, CharSequence filename) throws IOException
array
- an array whose elements will be written to filename
.filename
- a filename.IOException
public static long loadBytes(DataInput dataInput, byte[][] array, long offset, long length) throws IOException
dataInput
- a data input.array
- a big array which will be filled with data from dataInput
.offset
- the index of the first element of bigArray
to be filled.length
- the number of elements of bigArray
to be filled.dataInput
(it might be less than length
if dataInput
ends).IOException
public static long loadBytes(DataInput dataInput, byte[][] array) throws IOException
dataInput
- a data input.array
- a big array which will be filled with data from dataInput
.dataInput
(it might be less than the array length if dataInput
ends).IOException
public static long loadBytes(File file, byte[][] array, long offset, long length) throws IOException
File
object, storing them in a given big-array fragment.file
- a file.array
- a big array which will be filled with data from the specified file.offset
- the index of the first element of array
to be filled.length
- the number of elements of array
to be filled.length
if the file is too short).IOException
public static long loadBytes(CharSequence filename, byte[][] array, long offset, long length) throws IOException
filename
- a filename.array
- an array which will be filled with data from the specified file.offset
- the index of the first element of array
to be filled.length
- the number of elements of array
to be filled.length
if the file is too short).IOException
public static long loadBytes(File file, byte[][] array) throws IOException
File
object, storing them in a given big array.file
- a file.array
- a big array which will be filled with data from the specified file.IOException
public static long loadBytes(CharSequence filename, byte[][] array) throws IOException
filename
- a filename.array
- a big array which will be filled with data from the specified file.IOException
public static byte[][] loadBytesBig(File file) throws IOException
File
object, storing them in a new big array.
Note that the length of the returned big array will be computed dividing the specified file size by the number of bytes used to represent each element.
file
- a file.IOException
public static byte[][] loadBytesBig(CharSequence filename) throws IOException
Note that the length of the returned big array will be computed dividing the specified file size by the number of bytes used to represent each element.
filename
- a filename.IOException
public static void storeBytes(byte[][] array, long offset, long length, DataOutput dataOutput) throws IOException
array
- an array whose elements will be written to dataOutput
.offset
- the index of the first element of array
to be written.length
- the number of elements of array
to be written.dataOutput
- a data output.IOException
public static void storeBytes(byte[][] array, DataOutput dataOutput) throws IOException
array
- a big array whose elements will be written to dataOutput
.dataOutput
- a data output.IOException
public static void storeBytes(byte[][] array, long offset, long length, File file) throws IOException
File
object.array
- a big array whose elements will be written to filename
.offset
- the index of the first element of array
to be written.length
- the number of elements of array
to be written.file
- a file.IOException
public static void storeBytes(byte[][] array, long offset, long length, CharSequence filename) throws IOException
array
- a big array whose elements will be written to filename
.offset
- the index of the first element of array
to be written.length
- the number of elements of array
to be written.filename
- a filename.IOException
public static void storeBytes(byte[][] array, File file) throws IOException
File
object.array
- an array whose elements will be written to filename
.file
- a file.IOException
public static void storeBytes(byte[][] array, CharSequence filename) throws IOException
array
- a big array whose elements will be written to filename
.filename
- a filename.IOException
public static void storeBytes(ByteIterator i, DataOutput dataOutput) throws IOException
i
- an iterator whose output will be written to dataOutput
.dataOutput
- a filename.IOException
public static void storeBytes(ByteIterator i, File file) throws IOException
File
object.i
- an iterator whose output will be written to filename
.file
- a file.IOException
public static void storeBytes(ByteIterator i, CharSequence filename) throws IOException
i
- an iterator whose output will be written to filename
.filename
- a filename.IOException
public static ByteIterator asByteIterator(DataInput dataInput)
dataInput
- a data input.public static ByteIterator asByteIterator(File file) throws IOException
File
object into an iterator.file
- a file.IOException
public static ByteIterator asByteIterator(CharSequence filename) throws IOException
filename
- a filename.IOException
public static ByteIterable asByteIterable(File file)
File
object into an iterable object.file
- a file.public static ByteIterable asByteIterable(CharSequence filename)
filename
- a filename.public static int loadShorts(DataInput dataInput, short[] array, int offset, int length) throws IOException
dataInput
- a data input.array
- an array which will be filled with data from dataInput
.offset
- the index of the first element of array
to be filled.length
- the number of elements of array
to be filled.dataInput
(it might be less than length
if dataInput
ends).IOException
public static int loadShorts(DataInput dataInput, short[] array) throws IOException
dataInput
- a data input.array
- an array which will be filled with data from dataInput
.dataInput
(it might be less than the array length if dataInput
ends).IOException
public static int loadShorts(File file, short[] array, int offset, int length) throws IOException
File
object, storing them in a given array fragment.file
- a file.array
- an array which will be filled with data from the specified file.offset
- the index of the first element of array
to be filled.length
- the number of elements of array
to be filled.length
if the file is too short).IOException
public static int loadShorts(CharSequence filename, short[] array, int offset, int length) throws IOException
filename
- a filename.array
- an array which will be filled with data from the specified file.offset
- the index of the first element of array
to be filled.length
- the number of elements of array
to be filled.length
if the file is too short).IOException
public static int loadShorts(File file, short[] array) throws IOException
File
object, storing them in a given array.file
- a file.array
- an array which will be filled with data from the specified file.IOException
public static int loadShorts(CharSequence filename, short[] array) throws IOException
filename
- a filename.array
- an array which will be filled with data from the specified file.IOException
public static short[] loadShorts(File file) throws IOException
File
object, storing them in a new array.
Note that the length of the returned array will be computed dividing the specified file size by the number of bytes used to represent each element.
file
- a file.IOException
public static short[] loadShorts(CharSequence filename) throws IOException
Note that the length of the returned array will be computed dividing the specified file size by the number of bytes used to represent each element.
filename
- a filename.IOException
public static void storeShorts(short[] array, int offset, int length, DataOutput dataOutput) throws IOException
array
- an array whose elements will be written to dataOutput
.offset
- the index of the first element of array
to be written.length
- the number of elements of array
to be written.dataOutput
- a data output.IOException
public static void storeShorts(short[] array, DataOutput dataOutput) throws IOException
array
- an array whose elements will be written to dataOutput
.dataOutput
- a data output.IOException
public static void storeShorts(short[] array, int offset, int length, File file) throws IOException
File
object.array
- an array whose elements will be written to filename
.offset
- the index of the first element of array
to be written.length
- the number of elements of array
to be written.file
- a file.IOException
public static void storeShorts(short[] array, int offset, int length, CharSequence filename) throws IOException
array
- an array whose elements will be written to filename
.offset
- the index of the first element of array
to be written.length
- the number of elements of array
to be written.filename
- a filename.IOException
public static void storeShorts(short[] array, File file) throws IOException
File
object.array
- an array whose elements will be written to filename
.file
- a file.IOException
public static void storeShorts(short[] array, CharSequence filename) throws IOException
array
- an array whose elements will be written to filename
.filename
- a filename.IOException
public static long loadShorts(DataInput dataInput, short[][] array, long offset, long length) throws IOException
dataInput
- a data input.array
- a big array which will be filled with data from dataInput
.offset
- the index of the first element of bigArray
to be filled.length
- the number of elements of bigArray
to be filled.dataInput
(it might be less than length
if dataInput
ends).IOException
public static long loadShorts(DataInput dataInput, short[][] array) throws IOException
dataInput
- a data input.array
- a big array which will be filled with data from dataInput
.dataInput
(it might be less than the array length if dataInput
ends).IOException
public static long loadShorts(File file, short[][] array, long offset, long length) throws IOException
File
object, storing them in a given big-array fragment.file
- a file.array
- a big array which will be filled with data from the specified file.offset
- the index of the first element of array
to be filled.length
- the number of elements of array
to be filled.length
if the file is too short).IOException
public static long loadShorts(CharSequence filename, short[][] array, long offset, long length) throws IOException
filename
- a filename.array
- an array which will be filled with data from the specified file.offset
- the index of the first element of array
to be filled.length
- the number of elements of array
to be filled.length
if the file is too short).IOException
public static long loadShorts(File file, short[][] array) throws IOException
File
object, storing them in a given big array.file
- a file.array
- a big array which will be filled with data from the specified file.IOException
public static long loadShorts(CharSequence filename, short[][] array) throws IOException
filename
- a filename.array
- a big array which will be filled with data from the specified file.IOException
public static short[][] loadShortsBig(File file) throws IOException
File
object, storing them in a new big array.
Note that the length of the returned big array will be computed dividing the specified file size by the number of bytes used to represent each element.
file
- a file.IOException
public static short[][] loadShortsBig(CharSequence filename) throws IOException
Note that the length of the returned big array will be computed dividing the specified file size by the number of bytes used to represent each element.
filename
- a filename.IOException
public static void storeShorts(short[][] array, long offset, long length, DataOutput dataOutput) throws IOException
array
- an array whose elements will be written to dataOutput
.offset
- the index of the first element of array
to be written.length
- the number of elements of array
to be written.dataOutput
- a data output.IOException
public static void storeShorts(short[][] array, DataOutput dataOutput) throws IOException
array
- a big array whose elements will be written to dataOutput
.dataOutput
- a data output.IOException
public static void storeShorts(short[][] array, long offset, long length, File file) throws IOException
File
object.array
- a big array whose elements will be written to filename
.offset
- the index of the first element of array
to be written.length
- the number of elements of array
to be written.file
- a file.IOException
public static void storeShorts(short[][] array, long offset, long length, CharSequence filename) throws IOException
array
- a big array whose elements will be written to filename
.offset
- the index of the first element of array
to be written.length
- the number of elements of array
to be written.filename
- a filename.IOException
public static void storeShorts(short[][] array, File file) throws IOException
File
object.array
- an array whose elements will be written to filename
.file
- a file.IOException
public static void storeShorts(short[][] array, CharSequence filename) throws IOException
array
- a big array whose elements will be written to filename
.filename
- a filename.IOException
public static void storeShorts(ShortIterator i, DataOutput dataOutput) throws IOException
i
- an iterator whose output will be written to dataOutput
.dataOutput
- a filename.IOException
public static void storeShorts(ShortIterator i, File file) throws IOException
File
object.i
- an iterator whose output will be written to filename
.file
- a file.IOException
public static void storeShorts(ShortIterator i, CharSequence filename) throws IOException
i
- an iterator whose output will be written to filename
.filename
- a filename.IOException
public static ShortIterator asShortIterator(DataInput dataInput)
dataInput
- a data input.public static ShortIterator asShortIterator(File file) throws IOException
File
object into an iterator.file
- a file.IOException
public static ShortIterator asShortIterator(CharSequence filename) throws IOException
filename
- a filename.IOException
public static ShortIterable asShortIterable(File file)
File
object into an iterable object.file
- a file.public static ShortIterable asShortIterable(CharSequence filename)
filename
- a filename.public static int loadChars(DataInput dataInput, char[] array, int offset, int length) throws IOException
dataInput
- a data input.array
- an array which will be filled with data from dataInput
.offset
- the index of the first element of array
to be filled.length
- the number of elements of array
to be filled.dataInput
(it might be less than length
if dataInput
ends).IOException
public static int loadChars(DataInput dataInput, char[] array) throws IOException
dataInput
- a data input.array
- an array which will be filled with data from dataInput
.dataInput
(it might be less than the array length if dataInput
ends).IOException
public static int loadChars(File file, char[] array, int offset, int length) throws IOException
File
object, storing them in a given array fragment.file
- a file.array
- an array which will be filled with data from the specified file.offset
- the index of the first element of array
to be filled.length
- the number of elements of array
to be filled.length
if the file is too short).IOException
public static int loadChars(CharSequence filename, char[] array, int offset, int length) throws IOException
filename
- a filename.array
- an array which will be filled with data from the specified file.offset
- the index of the first element of array
to be filled.length
- the number of elements of array
to be filled.length
if the file is too short).IOException
public static int loadChars(File file, char[] array) throws IOException
File
object, storing them in a given array.file
- a file.array
- an array which will be filled with data from the specified file.IOException
public static int loadChars(CharSequence filename, char[] array) throws IOException
filename
- a filename.array
- an array which will be filled with data from the specified file.IOException
public static char[] loadChars(File file) throws IOException
File
object, storing them in a new array.
Note that the length of the returned array will be computed dividing the specified file size by the number of bytes used to represent each element.
file
- a file.IOException
public static char[] loadChars(CharSequence filename) throws IOException
Note that the length of the returned array will be computed dividing the specified file size by the number of bytes used to represent each element.
filename
- a filename.IOException
public static void storeChars(char[] array, int offset, int length, DataOutput dataOutput) throws IOException
array
- an array whose elements will be written to dataOutput
.offset
- the index of the first element of array
to be written.length
- the number of elements of array
to be written.dataOutput
- a data output.IOException
public static void storeChars(char[] array, DataOutput dataOutput) throws IOException
array
- an array whose elements will be written to dataOutput
.dataOutput
- a data output.IOException
public static void storeChars(char[] array, int offset, int length, File file) throws IOException
File
object.array
- an array whose elements will be written to filename
.offset
- the index of the first element of array
to be written.length
- the number of elements of array
to be written.file
- a file.IOException
public static void storeChars(char[] array, int offset, int length, CharSequence filename) throws IOException
array
- an array whose elements will be written to filename
.offset
- the index of the first element of array
to be written.length
- the number of elements of array
to be written.filename
- a filename.IOException
public static void storeChars(char[] array, File file) throws IOException
File
object.array
- an array whose elements will be written to filename
.file
- a file.IOException
public static void storeChars(char[] array, CharSequence filename) throws IOException
array
- an array whose elements will be written to filename
.filename
- a filename.IOException
public static long loadChars(DataInput dataInput, char[][] array, long offset, long length) throws IOException
dataInput
- a data input.array
- a big array which will be filled with data from dataInput
.offset
- the index of the first element of bigArray
to be filled.length
- the number of elements of bigArray
to be filled.dataInput
(it might be less than length
if dataInput
ends).IOException
public static long loadChars(DataInput dataInput, char[][] array) throws IOException
dataInput
- a data input.array
- a big array which will be filled with data from dataInput
.dataInput
(it might be less than the array length if dataInput
ends).IOException
public static long loadChars(File file, char[][] array, long offset, long length) throws IOException
File
object, storing them in a given big-array fragment.file
- a file.array
- a big array which will be filled with data from the specified file.offset
- the index of the first element of array
to be filled.length
- the number of elements of array
to be filled.length
if the file is too short).IOException
public static long loadChars(CharSequence filename, char[][] array, long offset, long length) throws IOException
filename
- a filename.array
- an array which will be filled with data from the specified file.offset
- the index of the first element of array
to be filled.length
- the number of elements of array
to be filled.length
if the file is too short).IOException
public static long loadChars(File file, char[][] array) throws IOException
File
object, storing them in a given big array.file
- a file.array
- a big array which will be filled with data from the specified file.IOException
public static long loadChars(CharSequence filename, char[][] array) throws IOException
filename
- a filename.array
- a big array which will be filled with data from the specified file.IOException
public static char[][] loadCharsBig(File file) throws IOException
File
object, storing them in a new big array.
Note that the length of the returned big array will be computed dividing the specified file size by the number of bytes used to represent each element.
file
- a file.IOException
public static char[][] loadCharsBig(CharSequence filename) throws IOException
Note that the length of the returned big array will be computed dividing the specified file size by the number of bytes used to represent each element.
filename
- a filename.IOException
public static void storeChars(char[][] array, long offset, long length, DataOutput dataOutput) throws IOException
array
- an array whose elements will be written to dataOutput
.offset
- the index of the first element of array
to be written.length
- the number of elements of array
to be written.dataOutput
- a data output.IOException
public static void storeChars(char[][] array, DataOutput dataOutput) throws IOException
array
- a big array whose elements will be written to dataOutput
.dataOutput
- a data output.IOException
public static void storeChars(char[][] array, long offset, long length, File file) throws IOException
File
object.array
- a big array whose elements will be written to filename
.offset
- the index of the first element of array
to be written.length
- the number of elements of array
to be written.file
- a file.IOException
public static void storeChars(char[][] array, long offset, long length, CharSequence filename) throws IOException
array
- a big array whose elements will be written to filename
.offset
- the index of the first element of array
to be written.length
- the number of elements of array
to be written.filename
- a filename.IOException
public static void storeChars(char[][] array, File file) throws IOException
File
object.array
- an array whose elements will be written to filename
.file
- a file.IOException
public static void storeChars(char[][] array, CharSequence filename) throws IOException
array
- a big array whose elements will be written to filename
.filename
- a filename.IOException
public static void storeChars(CharIterator i, DataOutput dataOutput) throws IOException
i
- an iterator whose output will be written to dataOutput
.dataOutput
- a filename.IOException
public static void storeChars(CharIterator i, File file) throws IOException
File
object.i
- an iterator whose output will be written to filename
.file
- a file.IOException
public static void storeChars(CharIterator i, CharSequence filename) throws IOException
i
- an iterator whose output will be written to filename
.filename
- a filename.IOException
public static CharIterator asCharIterator(DataInput dataInput)
dataInput
- a data input.public static CharIterator asCharIterator(File file) throws IOException
File
object into an iterator.file
- a file.IOException
public static CharIterator asCharIterator(CharSequence filename) throws IOException
filename
- a filename.IOException
public static CharIterable asCharIterable(File file)
File
object into an iterable object.file
- a file.public static CharIterable asCharIterable(CharSequence filename)
filename
- a filename.public static int loadInts(DataInput dataInput, int[] array, int offset, int length) throws IOException
dataInput
- a data input.array
- an array which will be filled with data from dataInput
.offset
- the index of the first element of array
to be filled.length
- the number of elements of array
to be filled.dataInput
(it might be less than length
if dataInput
ends).IOException
public static int loadInts(DataInput dataInput, int[] array) throws IOException
dataInput
- a data input.array
- an array which will be filled with data from dataInput
.dataInput
(it might be less than the array length if dataInput
ends).IOException
public static int loadInts(File file, int[] array, int offset, int length) throws IOException
File
object, storing them in a given array fragment.file
- a file.array
- an array which will be filled with data from the specified file.offset
- the index of the first element of array
to be filled.length
- the number of elements of array
to be filled.length
if the file is too short).IOException
public static int loadInts(CharSequence filename, int[] array, int offset, int length) throws IOException
filename
- a filename.array
- an array which will be filled with data from the specified file.offset
- the index of the first element of array
to be filled.length
- the number of elements of array
to be filled.length
if the file is too short).IOException
public static int loadInts(File file, int[] array) throws IOException
File
object, storing them in a given array.file
- a file.array
- an array which will be filled with data from the specified file.IOException
public static int loadInts(CharSequence filename, int[] array) throws IOException
filename
- a filename.array
- an array which will be filled with data from the specified file.IOException
public static int[] loadInts(File file) throws IOException
File
object, storing them in a new array.
Note that the length of the returned array will be computed dividing the specified file size by the number of bytes used to represent each element.
file
- a file.IOException
public static int[] loadInts(CharSequence filename) throws IOException
Note that the length of the returned array will be computed dividing the specified file size by the number of bytes used to represent each element.
filename
- a filename.IOException
public static void storeInts(int[] array, int offset, int length, DataOutput dataOutput) throws IOException
array
- an array whose elements will be written to dataOutput
.offset
- the index of the first element of array
to be written.length
- the number of elements of array
to be written.dataOutput
- a data output.IOException
public static void storeInts(int[] array, DataOutput dataOutput) throws IOException
array
- an array whose elements will be written to dataOutput
.dataOutput
- a data output.IOException
public static void storeInts(int[] array, int offset, int length, File file) throws IOException
File
object.array
- an array whose elements will be written to filename
.offset
- the index of the first element of array
to be written.length
- the number of elements of array
to be written.file
- a file.IOException
public static void storeInts(int[] array, int offset, int length, CharSequence filename) throws IOException
array
- an array whose elements will be written to filename
.offset
- the index of the first element of array
to be written.length
- the number of elements of array
to be written.filename
- a filename.IOException
public static void storeInts(int[] array, File file) throws IOException
File
object.array
- an array whose elements will be written to filename
.file
- a file.IOException
public static void storeInts(int[] array, CharSequence filename) throws IOException
array
- an array whose elements will be written to filename
.filename
- a filename.IOException
public static long loadInts(DataInput dataInput, int[][] array, long offset, long length) throws IOException
dataInput
- a data input.array
- a big array which will be filled with data from dataInput
.offset
- the index of the first element of bigArray
to be filled.length
- the number of elements of bigArray
to be filled.dataInput
(it might be less than length
if dataInput
ends).IOException
public static long loadInts(DataInput dataInput, int[][] array) throws IOException
dataInput
- a data input.array
- a big array which will be filled with data from dataInput
.dataInput
(it might be less than the array length if dataInput
ends).IOException
public static long loadInts(File file, int[][] array, long offset, long length) throws IOException
File
object, storing them in a given big-array fragment.file
- a file.array
- a big array which will be filled with data from the specified file.offset
- the index of the first element of array
to be filled.length
- the number of elements of array
to be filled.length
if the file is too short).IOException
public static long loadInts(CharSequence filename, int[][] array, long offset, long length) throws IOException
filename
- a filename.array
- an array which will be filled with data from the specified file.offset
- the index of the first element of array
to be filled.length
- the number of elements of array
to be filled.length
if the file is too short).IOException
public static long loadInts(File file, int[][] array) throws IOException
File
object, storing them in a given big array.file
- a file.array
- a big array which will be filled with data from the specified file.IOException
public static long loadInts(CharSequence filename, int[][] array) throws IOException
filename
- a filename.array
- a big array which will be filled with data from the specified file.IOException
public static int[][] loadIntsBig(File file) throws IOException
File
object, storing them in a new big array.
Note that the length of the returned big array will be computed dividing the specified file size by the number of bytes used to represent each element.
file
- a file.IOException
public static int[][] loadIntsBig(CharSequence filename) throws IOException
Note that the length of the returned big array will be computed dividing the specified file size by the number of bytes used to represent each element.
filename
- a filename.IOException
public static void storeInts(int[][] array, long offset, long length, DataOutput dataOutput) throws IOException
array
- an array whose elements will be written to dataOutput
.offset
- the index of the first element of array
to be written.length
- the number of elements of array
to be written.dataOutput
- a data output.IOException
public static void storeInts(int[][] array, DataOutput dataOutput) throws IOException
array
- a big array whose elements will be written to dataOutput
.dataOutput
- a data output.IOException
public static void storeInts(int[][] array, long offset, long length, File file) throws IOException
File
object.array
- a big array whose elements will be written to filename
.offset
- the index of the first element of array
to be written.length
- the number of elements of array
to be written.file
- a file.IOException
public static void storeInts(int[][] array, long offset, long length, CharSequence filename) throws IOException
array
- a big array whose elements will be written to filename
.offset
- the index of the first element of array
to be written.length
- the number of elements of array
to be written.filename
- a filename.IOException
public static void storeInts(int[][] array, File file) throws IOException
File
object.array
- an array whose elements will be written to filename
.file
- a file.IOException
public static void storeInts(int[][] array, CharSequence filename) throws IOException
array
- a big array whose elements will be written to filename
.filename
- a filename.IOException
public static void storeInts(IntIterator i, DataOutput dataOutput) throws IOException
i
- an iterator whose output will be written to dataOutput
.dataOutput
- a filename.IOException
public static void storeInts(IntIterator i, File file) throws IOException
File
object.i
- an iterator whose output will be written to filename
.file
- a file.IOException
public static void storeInts(IntIterator i, CharSequence filename) throws IOException
i
- an iterator whose output will be written to filename
.filename
- a filename.IOException
public static IntIterator asIntIterator(DataInput dataInput)
dataInput
- a data input.public static IntIterator asIntIterator(File file) throws IOException
File
object into an iterator.file
- a file.IOException
public static IntIterator asIntIterator(CharSequence filename) throws IOException
filename
- a filename.IOException
public static IntIterable asIntIterable(File file)
File
object into an iterable object.file
- a file.public static IntIterable asIntIterable(CharSequence filename)
filename
- a filename.public static int loadLongs(DataInput dataInput, long[] array, int offset, int length) throws IOException
dataInput
- a data input.array
- an array which will be filled with data from dataInput
.offset
- the index of the first element of array
to be filled.length
- the number of elements of array
to be filled.dataInput
(it might be less than length
if dataInput
ends).IOException
public static int loadLongs(DataInput dataInput, long[] array) throws IOException
dataInput
- a data input.array
- an array which will be filled with data from dataInput
.dataInput
(it might be less than the array length if dataInput
ends).IOException
public static int loadLongs(File file, long[] array, int offset, int length) throws IOException
File
object, storing them in a given array fragment.file
- a file.array
- an array which will be filled with data from the specified file.offset
- the index of the first element of array
to be filled.length
- the number of elements of array
to be filled.length
if the file is too short).IOException
public static int loadLongs(CharSequence filename, long[] array, int offset, int length) throws IOException
filename
- a filename.array
- an array which will be filled with data from the specified file.offset
- the index of the first element of array
to be filled.length
- the number of elements of array
to be filled.length
if the file is too short).IOException
public static int loadLongs(File file, long[] array) throws IOException
File
object, storing them in a given array.file
- a file.array
- an array which will be filled with data from the specified file.IOException
public static int loadLongs(CharSequence filename, long[] array) throws IOException
filename
- a filename.array
- an array which will be filled with data from the specified file.IOException
public static long[] loadLongs(File file) throws IOException
File
object, storing them in a new array.
Note that the length of the returned array will be computed dividing the specified file size by the number of bytes used to represent each element.
file
- a file.IOException
public static long[] loadLongs(CharSequence filename) throws IOException
Note that the length of the returned array will be computed dividing the specified file size by the number of bytes used to represent each element.
filename
- a filename.IOException
public static void storeLongs(long[] array, int offset, int length, DataOutput dataOutput) throws IOException
array
- an array whose elements will be written to dataOutput
.offset
- the index of the first element of array
to be written.length
- the number of elements of array
to be written.dataOutput
- a data output.IOException
public static void storeLongs(long[] array, DataOutput dataOutput) throws IOException
array
- an array whose elements will be written to dataOutput
.dataOutput
- a data output.IOException
public static void storeLongs(long[] array, int offset, int length, File file) throws IOException
File
object.array
- an array whose elements will be written to filename
.offset
- the index of the first element of array
to be written.length
- the number of elements of array
to be written.file
- a file.IOException
public static void storeLongs(long[] array, int offset, int length, CharSequence filename) throws IOException
array
- an array whose elements will be written to filename
.offset
- the index of the first element of array
to be written.length
- the number of elements of array
to be written.filename
- a filename.IOException
public static void storeLongs(long[] array, File file) throws IOException
File
object.array
- an array whose elements will be written to filename
.file
- a file.IOException
public static void storeLongs(long[] array, CharSequence filename) throws IOException
array
- an array whose elements will be written to filename
.filename
- a filename.IOException
public static long loadLongs(DataInput dataInput, long[][] array, long offset, long length) throws IOException
dataInput
- a data input.array
- a big array which will be filled with data from dataInput
.offset
- the index of the first element of bigArray
to be filled.length
- the number of elements of bigArray
to be filled.dataInput
(it might be less than length
if dataInput
ends).IOException
public static long loadLongs(DataInput dataInput, long[][] array) throws IOException
dataInput
- a data input.array
- a big array which will be filled with data from dataInput
.dataInput
(it might be less than the array length if dataInput
ends).IOException
public static long loadLongs(File file, long[][] array, long offset, long length) throws IOException
File
object, storing them in a given big-array fragment.file
- a file.array
- a big array which will be filled with data from the specified file.offset
- the index of the first element of array
to be filled.length
- the number of elements of array
to be filled.length
if the file is too short).IOException
public static long loadLongs(CharSequence filename, long[][] array, long offset, long length) throws IOException
filename
- a filename.array
- an array which will be filled with data from the specified file.offset
- the index of the first element of array
to be filled.length
- the number of elements of array
to be filled.length
if the file is too short).IOException
public static long loadLongs(File file, long[][] array) throws IOException
File
object, storing them in a given big array.file
- a file.array
- a big array which will be filled with data from the specified file.IOException
public static long loadLongs(CharSequence filename, long[][] array) throws IOException
filename
- a filename.array
- a big array which will be filled with data from the specified file.IOException
public static long[][] loadLongsBig(File file) throws IOException
File
object, storing them in a new big array.
Note that the length of the returned big array will be computed dividing the specified file size by the number of bytes used to represent each element.
file
- a file.IOException
public static long[][] loadLongsBig(CharSequence filename) throws IOException
Note that the length of the returned big array will be computed dividing the specified file size by the number of bytes used to represent each element.
filename
- a filename.IOException
public static void storeLongs(long[][] array, long offset, long length, DataOutput dataOutput) throws IOException
array
- an array whose elements will be written to dataOutput
.offset
- the index of the first element of array
to be written.length
- the number of elements of array
to be written.dataOutput
- a data output.IOException
public static void storeLongs(long[][] array, DataOutput dataOutput) throws IOException
array
- a big array whose elements will be written to dataOutput
.dataOutput
- a data output.IOException
public static void storeLongs(long[][] array, long offset, long length, File file) throws IOException
File
object.array
- a big array whose elements will be written to filename
.offset
- the index of the first element of array
to be written.length
- the number of elements of array
to be written.file
- a file.IOException
public static void storeLongs(long[][] array, long offset, long length, CharSequence filename) throws IOException
array
- a big array whose elements will be written to filename
.offset
- the index of the first element of array
to be written.length
- the number of elements of array
to be written.filename
- a filename.IOException
public static void storeLongs(long[][] array, File file) throws IOException
File
object.array
- an array whose elements will be written to filename
.file
- a file.IOException
public static void storeLongs(long[][] array, CharSequence filename) throws IOException
array
- a big array whose elements will be written to filename
.filename
- a filename.IOException
public static void storeLongs(LongIterator i, DataOutput dataOutput) throws IOException
i
- an iterator whose output will be written to dataOutput
.dataOutput
- a filename.IOException
public static void storeLongs(LongIterator i, File file) throws IOException
File
object.i
- an iterator whose output will be written to filename
.file
- a file.IOException
public static void storeLongs(LongIterator i, CharSequence filename) throws IOException
i
- an iterator whose output will be written to filename
.filename
- a filename.IOException
public static LongIterator asLongIterator(DataInput dataInput)
dataInput
- a data input.public static LongIterator asLongIterator(File file) throws IOException
File
object into an iterator.file
- a file.IOException
public static LongIterator asLongIterator(CharSequence filename) throws IOException
filename
- a filename.IOException
public static LongIterable asLongIterable(File file)
File
object into an iterable object.file
- a file.public static LongIterable asLongIterable(CharSequence filename)
filename
- a filename.public static int loadFloats(DataInput dataInput, float[] array, int offset, int length) throws IOException
dataInput
- a data input.array
- an array which will be filled with data from dataInput
.offset
- the index of the first element of array
to be filled.length
- the number of elements of array
to be filled.dataInput
(it might be less than length
if dataInput
ends).IOException
public static int loadFloats(DataInput dataInput, float[] array) throws IOException
dataInput
- a data input.array
- an array which will be filled with data from dataInput
.dataInput
(it might be less than the array length if dataInput
ends).IOException
public static int loadFloats(File file, float[] array, int offset, int length) throws IOException
File
object, storing them in a given array fragment.file
- a file.array
- an array which will be filled with data from the specified file.offset
- the index of the first element of array
to be filled.length
- the number of elements of array
to be filled.length
if the file is too short).IOException
public static int loadFloats(CharSequence filename, float[] array, int offset, int length) throws IOException
filename
- a filename.array
- an array which will be filled with data from the specified file.offset
- the index of the first element of array
to be filled.length
- the number of elements of array
to be filled.length
if the file is too short).IOException
public static int loadFloats(File file, float[] array) throws IOException
File
object, storing them in a given array.file
- a file.array
- an array which will be filled with data from the specified file.IOException
public static int loadFloats(CharSequence filename, float[] array) throws IOException
filename
- a filename.array
- an array which will be filled with data from the specified file.IOException
public static float[] loadFloats(File file) throws IOException
File
object, storing them in a new array.
Note that the length of the returned array will be computed dividing the specified file size by the number of bytes used to represent each element.
file
- a file.IOException
public static float[] loadFloats(CharSequence filename) throws IOException
Note that the length of the returned array will be computed dividing the specified file size by the number of bytes used to represent each element.
filename
- a filename.IOException
public static void storeFloats(float[] array, int offset, int length, DataOutput dataOutput) throws IOException
array
- an array whose elements will be written to dataOutput
.offset
- the index of the first element of array
to be written.length
- the number of elements of array
to be written.dataOutput
- a data output.IOException
public static void storeFloats(float[] array, DataOutput dataOutput) throws IOException
array
- an array whose elements will be written to dataOutput
.dataOutput
- a data output.IOException
public static void storeFloats(float[] array, int offset, int length, File file) throws IOException
File
object.array
- an array whose elements will be written to filename
.offset
- the index of the first element of array
to be written.length
- the number of elements of array
to be written.file
- a file.IOException
public static void storeFloats(float[] array, int offset, int length, CharSequence filename) throws IOException
array
- an array whose elements will be written to filename
.offset
- the index of the first element of array
to be written.length
- the number of elements of array
to be written.filename
- a filename.IOException
public static void storeFloats(float[] array, File file) throws IOException
File
object.array
- an array whose elements will be written to filename
.file
- a file.IOException
public static void storeFloats(float[] array, CharSequence filename) throws IOException
array
- an array whose elements will be written to filename
.filename
- a filename.IOException
public static long loadFloats(DataInput dataInput, float[][] array, long offset, long length) throws IOException
dataInput
- a data input.array
- a big array which will be filled with data from dataInput
.offset
- the index of the first element of bigArray
to be filled.length
- the number of elements of bigArray
to be filled.dataInput
(it might be less than length
if dataInput
ends).IOException
public static long loadFloats(DataInput dataInput, float[][] array) throws IOException
dataInput
- a data input.array
- a big array which will be filled with data from dataInput
.dataInput
(it might be less than the array length if dataInput
ends).IOException
public static long loadFloats(File file, float[][] array, long offset, long length) throws IOException
File
object, storing them in a given big-array fragment.file
- a file.array
- a big array which will be filled with data from the specified file.offset
- the index of the first element of array
to be filled.length
- the number of elements of array
to be filled.length
if the file is too short).IOException
public static long loadFloats(CharSequence filename, float[][] array, long offset, long length) throws IOException
filename
- a filename.array
- an array which will be filled with data from the specified file.offset
- the index of the first element of array
to be filled.length
- the number of elements of array
to be filled.length
if the file is too short).IOException
public static long loadFloats(File file, float[][] array) throws IOException
File
object, storing them in a given big array.file
- a file.array
- a big array which will be filled with data from the specified file.IOException
public static long loadFloats(CharSequence filename, float[][] array) throws IOException
filename
- a filename.array
- a big array which will be filled with data from the specified file.IOException
public static float[][] loadFloatsBig(File file) throws IOException
File
object, storing them in a new big array.
Note that the length of the returned big array will be computed dividing the specified file size by the number of bytes used to represent each element.
file
- a file.IOException
public static float[][] loadFloatsBig(CharSequence filename) throws IOException
Note that the length of the returned big array will be computed dividing the specified file size by the number of bytes used to represent each element.
filename
- a filename.IOException
public static void storeFloats(float[][] array, long offset, long length, DataOutput dataOutput) throws IOException
array
- an array whose elements will be written to dataOutput
.offset
- the index of the first element of array
to be written.length
- the number of elements of array
to be written.dataOutput
- a data output.IOException
public static void storeFloats(float[][] array, DataOutput dataOutput) throws IOException
array
- a big array whose elements will be written to dataOutput
.dataOutput
- a data output.IOException
public static void storeFloats(float[][] array, long offset, long length, File file) throws IOException
File
object.array
- a big array whose elements will be written to filename
.offset
- the index of the first element of array
to be written.length
- the number of elements of array
to be written.file
- a file.IOException
public static void storeFloats(float[][] array, long offset, long length, CharSequence filename) throws IOException
array
- a big array whose elements will be written to filename
.offset
- the index of the first element of array
to be written.length
- the number of elements of array
to be written.filename
- a filename.IOException
public static void storeFloats(float[][] array, File file) throws IOException
File
object.array
- an array whose elements will be written to filename
.file
- a file.IOException
public static void storeFloats(float[][] array, CharSequence filename) throws IOException
array
- a big array whose elements will be written to filename
.filename
- a filename.IOException
public static void storeFloats(FloatIterator i, DataOutput dataOutput) throws IOException
i
- an iterator whose output will be written to dataOutput
.dataOutput
- a filename.IOException
public static void storeFloats(FloatIterator i, File file) throws IOException
File
object.i
- an iterator whose output will be written to filename
.file
- a file.IOException
public static void storeFloats(FloatIterator i, CharSequence filename) throws IOException
i
- an iterator whose output will be written to filename
.filename
- a filename.IOException
public static FloatIterator asFloatIterator(DataInput dataInput)
dataInput
- a data input.public static FloatIterator asFloatIterator(File file) throws IOException
File
object into an iterator.file
- a file.IOException
public static FloatIterator asFloatIterator(CharSequence filename) throws IOException
filename
- a filename.IOException
public static FloatIterable asFloatIterable(File file)
File
object into an iterable object.file
- a file.public static FloatIterable asFloatIterable(CharSequence filename)
filename
- a filename.public static int loadDoubles(DataInput dataInput, double[] array, int offset, int length) throws IOException
dataInput
- a data input.array
- an array which will be filled with data from dataInput
.offset
- the index of the first element of array
to be filled.length
- the number of elements of array
to be filled.dataInput
(it might be less than length
if dataInput
ends).IOException
public static int loadDoubles(DataInput dataInput, double[] array) throws IOException
dataInput
- a data input.array
- an array which will be filled with data from dataInput
.dataInput
(it might be less than the array length if dataInput
ends).IOException
public static int loadDoubles(File file, double[] array, int offset, int length) throws IOException
File
object, storing them in a given array fragment.file
- a file.array
- an array which will be filled with data from the specified file.offset
- the index of the first element of array
to be filled.length
- the number of elements of array
to be filled.length
if the file is too short).IOException
public static int loadDoubles(CharSequence filename, double[] array, int offset, int length) throws IOException
filename
- a filename.array
- an array which will be filled with data from the specified file.offset
- the index of the first element of array
to be filled.length
- the number of elements of array
to be filled.length
if the file is too short).IOException
public static int loadDoubles(File file, double[] array) throws IOException
File
object, storing them in a given array.file
- a file.array
- an array which will be filled with data from the specified file.IOException
public static int loadDoubles(CharSequence filename, double[] array) throws IOException
filename
- a filename.array
- an array which will be filled with data from the specified file.IOException
public static double[] loadDoubles(File file) throws IOException
File
object, storing them in a new array.
Note that the length of the returned array will be computed dividing the specified file size by the number of bytes used to represent each element.
file
- a file.IOException
public static double[] loadDoubles(CharSequence filename) throws IOException
Note that the length of the returned array will be computed dividing the specified file size by the number of bytes used to represent each element.
filename
- a filename.IOException
public static void storeDoubles(double[] array, int offset, int length, DataOutput dataOutput) throws IOException
array
- an array whose elements will be written to dataOutput
.offset
- the index of the first element of array
to be written.length
- the number of elements of array
to be written.dataOutput
- a data output.IOException
public static void storeDoubles(double[] array, DataOutput dataOutput) throws IOException
array
- an array whose elements will be written to dataOutput
.dataOutput
- a data output.IOException
public static void storeDoubles(double[] array, int offset, int length, File file) throws IOException
File
object.array
- an array whose elements will be written to filename
.offset
- the index of the first element of array
to be written.length
- the number of elements of array
to be written.file
- a file.IOException
public static void storeDoubles(double[] array, int offset, int length, CharSequence filename) throws IOException
array
- an array whose elements will be written to filename
.offset
- the index of the first element of array
to be written.length
- the number of elements of array
to be written.filename
- a filename.IOException
public static void storeDoubles(double[] array, File file) throws IOException
File
object.array
- an array whose elements will be written to filename
.file
- a file.IOException
public static void storeDoubles(double[] array, CharSequence filename) throws IOException
array
- an array whose elements will be written to filename
.filename
- a filename.IOException
public static long loadDoubles(DataInput dataInput, double[][] array, long offset, long length) throws IOException
dataInput
- a data input.array
- a big array which will be filled with data from dataInput
.offset
- the index of the first element of bigArray
to be filled.length
- the number of elements of bigArray
to be filled.dataInput
(it might be less than length
if dataInput
ends).IOException
public static long loadDoubles(DataInput dataInput, double[][] array) throws IOException
dataInput
- a data input.array
- a big array which will be filled with data from dataInput
.dataInput
(it might be less than the array length if dataInput
ends).IOException
public static long loadDoubles(File file, double[][] array, long offset, long length) throws IOException
File
object, storing them in a given big-array fragment.file
- a file.array
- a big array which will be filled with data from the specified file.offset
- the index of the first element of array
to be filled.length
- the number of elements of array
to be filled.length
if the file is too short).IOException
public static long loadDoubles(CharSequence filename, double[][] array, long offset, long length) throws IOException
filename
- a filename.array
- an array which will be filled with data from the specified file.offset
- the index of the first element of array
to be filled.length
- the number of elements of array
to be filled.length
if the file is too short).IOException
public static long loadDoubles(File file, double[][] array) throws IOException
File
object, storing them in a given big array.file
- a file.array
- a big array which will be filled with data from the specified file.IOException
public static long loadDoubles(CharSequence filename, double[][] array) throws IOException
filename
- a filename.array
- a big array which will be filled with data from the specified file.IOException
public static double[][] loadDoublesBig(File file) throws IOException
File
object, storing them in a new big array.
Note that the length of the returned big array will be computed dividing the specified file size by the number of bytes used to represent each element.
file
- a file.IOException
public static double[][] loadDoublesBig(CharSequence filename) throws IOException
Note that the length of the returned big array will be computed dividing the specified file size by the number of bytes used to represent each element.
filename
- a filename.IOException
public static void storeDoubles(double[][] array, long offset, long length, DataOutput dataOutput) throws IOException
array
- an array whose elements will be written to dataOutput
.offset
- the index of the first element of array
to be written.length
- the number of elements of array
to be written.dataOutput
- a data output.IOException
public static void storeDoubles(double[][] array, DataOutput dataOutput) throws IOException
array
- a big array whose elements will be written to dataOutput
.dataOutput
- a data output.IOException
public static void storeDoubles(double[][] array, long offset, long length, File file) throws IOException
File
object.array
- a big array whose elements will be written to filename
.offset
- the index of the first element of array
to be written.length
- the number of elements of array
to be written.file
- a file.IOException
public static void storeDoubles(double[][] array, long offset, long length, CharSequence filename) throws IOException
array
- a big array whose elements will be written to filename
.offset
- the index of the first element of array
to be written.length
- the number of elements of array
to be written.filename
- a filename.IOException
public static void storeDoubles(double[][] array, File file) throws IOException
File
object.array
- an array whose elements will be written to filename
.file
- a file.IOException
public static void storeDoubles(double[][] array, CharSequence filename) throws IOException
array
- a big array whose elements will be written to filename
.filename
- a filename.IOException
public static void storeDoubles(DoubleIterator i, DataOutput dataOutput) throws IOException
i
- an iterator whose output will be written to dataOutput
.dataOutput
- a filename.IOException
public static void storeDoubles(DoubleIterator i, File file) throws IOException
File
object.i
- an iterator whose output will be written to filename
.file
- a file.IOException
public static void storeDoubles(DoubleIterator i, CharSequence filename) throws IOException
i
- an iterator whose output will be written to filename
.filename
- a filename.IOException
public static DoubleIterator asDoubleIterator(DataInput dataInput)
dataInput
- a data input.public static DoubleIterator asDoubleIterator(File file) throws IOException
File
object into an iterator.file
- a file.IOException
public static DoubleIterator asDoubleIterator(CharSequence filename) throws IOException
filename
- a filename.IOException
public static DoubleIterable asDoubleIterable(File file)
File
object into an iterable object.file
- a file.public static DoubleIterable asDoubleIterable(CharSequence filename)
filename
- a filename.