Class TextIO
public class TextIO
extends java.lang.Object
This class fills a gap in the Java API: a natural operation on sequences of primitive elements is to load or store them in textual form. This format makes files humanly readable.
For each primitive type, this class provides methods that read elements
from a BufferedReader or from a filename (which will be opened
using a buffer of BUFFER_SIZE bytes) into an array. Analogously,
there are methods that store the content of an array (fragment) or the
elements returned by an iterator to a PrintStream or to a given
filename.
Finally, there are useful wrapper methods that exhibit a file as a type-specific iterator.
Note that, contrarily to the binary case, there is no way to load from a file without providing an array. You can easily work around the problem as follows:
array = IntIterators.unwrap(TextIO.asIntIterator("foo"));
- Since:
- 4.4
-
Field Summary
Fields Modifier and Type Field Description static intBUFFER_SIZEThe size of the buffer used for all I/O on files. -
Method Summary
Modifier and Type Method Description static BooleanIterableasBooleanIterable(java.io.File file)Wraps a file given by aFileobject into an iterable object.static BooleanIterableasBooleanIterable(java.lang.CharSequence filename)Wraps a file given by a pathname into an iterable object.static BooleanIteratorasBooleanIterator(java.io.BufferedReader reader)Wraps the given buffered reader into an iterator.static BooleanIteratorasBooleanIterator(java.io.File file)Wraps a file given by aFileobject into an iterator.static BooleanIteratorasBooleanIterator(java.lang.CharSequence filename)Wraps a file given by a pathname into an iterator.static ByteIterableasByteIterable(java.io.File file)Wraps a file given by aFileobject into an iterable object.static ByteIterableasByteIterable(java.lang.CharSequence filename)Wraps a file given by a pathname into an iterable object.static ByteIteratorasByteIterator(java.io.BufferedReader reader)Wraps the given buffered reader into an iterator.static ByteIteratorasByteIterator(java.io.File file)Wraps a file given by aFileobject into an iterator.static ByteIteratorasByteIterator(java.lang.CharSequence filename)Wraps a file given by a pathname into an iterator.static DoubleIterableasDoubleIterable(java.io.File file)Wraps a file given by aFileobject into an iterable object.static DoubleIterableasDoubleIterable(java.lang.CharSequence filename)Wraps a file given by a pathname into an iterable object.static DoubleIteratorasDoubleIterator(java.io.BufferedReader reader)Wraps the given buffered reader into an iterator.static DoubleIteratorasDoubleIterator(java.io.File file)Wraps a file given by aFileobject into an iterator.static DoubleIteratorasDoubleIterator(java.lang.CharSequence filename)Wraps a file given by a pathname into an iterator.static FloatIterableasFloatIterable(java.io.File file)Wraps a file given by aFileobject into an iterable object.static FloatIterableasFloatIterable(java.lang.CharSequence filename)Wraps a file given by a pathname into an iterable object.static FloatIteratorasFloatIterator(java.io.BufferedReader reader)Wraps the given buffered reader into an iterator.static FloatIteratorasFloatIterator(java.io.File file)Wraps a file given by aFileobject into an iterator.static FloatIteratorasFloatIterator(java.lang.CharSequence filename)Wraps a file given by a pathname into an iterator.static IntIterableasIntIterable(java.io.File file)Wraps a file given by aFileobject into an iterable object.static IntIterableasIntIterable(java.lang.CharSequence filename)Wraps a file given by a pathname into an iterable object.static IntIteratorasIntIterator(java.io.BufferedReader reader)Wraps the given buffered reader into an iterator.static IntIteratorasIntIterator(java.io.File file)Wraps a file given by aFileobject into an iterator.static IntIteratorasIntIterator(java.lang.CharSequence filename)Wraps a file given by a pathname into an iterator.static LongIterableasLongIterable(java.io.File file)Wraps a file given by aFileobject into an iterable object.static LongIterableasLongIterable(java.lang.CharSequence filename)Wraps a file given by a pathname into an iterable object.static LongIteratorasLongIterator(java.io.BufferedReader reader)Wraps the given buffered reader into an iterator.static LongIteratorasLongIterator(java.io.File file)Wraps a file given by aFileobject into an iterator.static LongIteratorasLongIterator(java.lang.CharSequence filename)Wraps a file given by a pathname into an iterator.static ShortIterableasShortIterable(java.io.File file)Wraps a file given by aFileobject into an iterable object.static ShortIterableasShortIterable(java.lang.CharSequence filename)Wraps a file given by a pathname into an iterable object.static ShortIteratorasShortIterator(java.io.BufferedReader reader)Wraps the given buffered reader into an iterator.static ShortIteratorasShortIterator(java.io.File file)Wraps a file given by aFileobject into an iterator.static ShortIteratorasShortIterator(java.lang.CharSequence filename)Wraps a file given by a pathname into an iterator.static intloadBooleans(java.io.BufferedReader reader, boolean[] array)Loads elements from a given buffered reader, storing them in a given array.static longloadBooleans(java.io.BufferedReader reader, boolean[][] array)Loads elements from a given buffered reader, storing them in a given array.static longloadBooleans(java.io.BufferedReader reader, boolean[][] array, long offset, long length)Loads elements from a given fast buffered reader, storing them in a given big-array fragment.static intloadBooleans(java.io.BufferedReader reader, boolean[] array, int offset, int length)Loads elements from a given fast buffered reader, storing them in a given array fragment.static intloadBooleans(java.io.File file, boolean[] array)Loads elements from a file given by aFileobject, storing them in a given array.static longloadBooleans(java.io.File file, boolean[][] array)Loads elements from a file given by aFileobject, storing them in a given array.static longloadBooleans(java.io.File file, boolean[][] array, long offset, long length)Loads elements from a file given by aFileobject, storing them in a given big-array fragment.static intloadBooleans(java.io.File file, boolean[] array, int offset, int length)Loads elements from a file given by aFileobject, storing them in a given array fragment.static intloadBooleans(java.lang.CharSequence filename, boolean[] array)Loads elements from a file given by a filename, storing them in a given array.static longloadBooleans(java.lang.CharSequence filename, boolean[][] array)Loads elements from a file given by a filename, storing them in a given array.static longloadBooleans(java.lang.CharSequence filename, boolean[][] array, long offset, long length)Loads elements from a file given by a filename, storing them in a given big-array fragment.static intloadBooleans(java.lang.CharSequence filename, boolean[] array, int offset, int length)Loads elements from a file given by a filename, storing them in a given array fragment.static intloadBytes(java.io.BufferedReader reader, byte[] array)Loads elements from a given buffered reader, storing them in a given array.static longloadBytes(java.io.BufferedReader reader, byte[][] array)Loads elements from a given buffered reader, storing them in a given array.static longloadBytes(java.io.BufferedReader reader, byte[][] array, long offset, long length)Loads elements from a given fast buffered reader, storing them in a given big-array fragment.static intloadBytes(java.io.BufferedReader reader, byte[] array, int offset, int length)Loads elements from a given fast buffered reader, storing them in a given array fragment.static intloadBytes(java.io.File file, byte[] array)Loads elements from a file given by aFileobject, storing them in a given array.static longloadBytes(java.io.File file, byte[][] array)Loads elements from a file given by aFileobject, storing them in a given array.static longloadBytes(java.io.File file, byte[][] array, long offset, long length)Loads elements from a file given by aFileobject, storing them in a given big-array fragment.static intloadBytes(java.io.File file, byte[] array, int offset, int length)Loads elements from a file given by aFileobject, storing them in a given array fragment.static intloadBytes(java.lang.CharSequence filename, byte[] array)Loads elements from a file given by a filename, storing them in a given array.static longloadBytes(java.lang.CharSequence filename, byte[][] array)Loads elements from a file given by a filename, storing them in a given array.static longloadBytes(java.lang.CharSequence filename, byte[][] array, long offset, long length)Loads elements from a file given by a filename, storing them in a given big-array fragment.static intloadBytes(java.lang.CharSequence filename, byte[] array, int offset, int length)Loads elements from a file given by a filename, storing them in a given array fragment.static intloadDoubles(java.io.BufferedReader reader, double[] array)Loads elements from a given buffered reader, storing them in a given array.static longloadDoubles(java.io.BufferedReader reader, double[][] array)Loads elements from a given buffered reader, storing them in a given array.static longloadDoubles(java.io.BufferedReader reader, double[][] array, long offset, long length)Loads elements from a given fast buffered reader, storing them in a given big-array fragment.static intloadDoubles(java.io.BufferedReader reader, double[] array, int offset, int length)Loads elements from a given fast buffered reader, storing them in a given array fragment.static intloadDoubles(java.io.File file, double[] array)Loads elements from a file given by aFileobject, storing them in a given array.static longloadDoubles(java.io.File file, double[][] array)Loads elements from a file given by aFileobject, storing them in a given array.static longloadDoubles(java.io.File file, double[][] array, long offset, long length)Loads elements from a file given by aFileobject, storing them in a given big-array fragment.static intloadDoubles(java.io.File file, double[] array, int offset, int length)Loads elements from a file given by aFileobject, storing them in a given array fragment.static intloadDoubles(java.lang.CharSequence filename, double[] array)Loads elements from a file given by a filename, storing them in a given array.static longloadDoubles(java.lang.CharSequence filename, double[][] array)Loads elements from a file given by a filename, storing them in a given array.static longloadDoubles(java.lang.CharSequence filename, double[][] array, long offset, long length)Loads elements from a file given by a filename, storing them in a given big-array fragment.static intloadDoubles(java.lang.CharSequence filename, double[] array, int offset, int length)Loads elements from a file given by a filename, storing them in a given array fragment.static intloadFloats(java.io.BufferedReader reader, float[] array)Loads elements from a given buffered reader, storing them in a given array.static longloadFloats(java.io.BufferedReader reader, float[][] array)Loads elements from a given buffered reader, storing them in a given array.static longloadFloats(java.io.BufferedReader reader, float[][] array, long offset, long length)Loads elements from a given fast buffered reader, storing them in a given big-array fragment.static intloadFloats(java.io.BufferedReader reader, float[] array, int offset, int length)Loads elements from a given fast buffered reader, storing them in a given array fragment.static intloadFloats(java.io.File file, float[] array)Loads elements from a file given by aFileobject, storing them in a given array.static longloadFloats(java.io.File file, float[][] array)Loads elements from a file given by aFileobject, storing them in a given array.static longloadFloats(java.io.File file, float[][] array, long offset, long length)Loads elements from a file given by aFileobject, storing them in a given big-array fragment.static intloadFloats(java.io.File file, float[] array, int offset, int length)Loads elements from a file given by aFileobject, storing them in a given array fragment.static intloadFloats(java.lang.CharSequence filename, float[] array)Loads elements from a file given by a filename, storing them in a given array.static longloadFloats(java.lang.CharSequence filename, float[][] array)Loads elements from a file given by a filename, storing them in a given array.static longloadFloats(java.lang.CharSequence filename, float[][] array, long offset, long length)Loads elements from a file given by a filename, storing them in a given big-array fragment.static intloadFloats(java.lang.CharSequence filename, float[] array, int offset, int length)Loads elements from a file given by a filename, storing them in a given array fragment.static intloadInts(java.io.BufferedReader reader, int[] array)Loads elements from a given buffered reader, storing them in a given array.static longloadInts(java.io.BufferedReader reader, int[][] array)Loads elements from a given buffered reader, storing them in a given array.static longloadInts(java.io.BufferedReader reader, int[][] array, long offset, long length)Loads elements from a given fast buffered reader, storing them in a given big-array fragment.static intloadInts(java.io.BufferedReader reader, int[] array, int offset, int length)Loads elements from a given fast buffered reader, storing them in a given array fragment.static intloadInts(java.io.File file, int[] array)Loads elements from a file given by aFileobject, storing them in a given array.static longloadInts(java.io.File file, int[][] array)Loads elements from a file given by aFileobject, storing them in a given array.static longloadInts(java.io.File file, int[][] array, long offset, long length)Loads elements from a file given by aFileobject, storing them in a given big-array fragment.static intloadInts(java.io.File file, int[] array, int offset, int length)Loads elements from a file given by aFileobject, storing them in a given array fragment.static intloadInts(java.lang.CharSequence filename, int[] array)Loads elements from a file given by a filename, storing them in a given array.static longloadInts(java.lang.CharSequence filename, int[][] array)Loads elements from a file given by a filename, storing them in a given array.static longloadInts(java.lang.CharSequence filename, int[][] array, long offset, long length)Loads elements from a file given by a filename, storing them in a given big-array fragment.static intloadInts(java.lang.CharSequence filename, int[] array, int offset, int length)Loads elements from a file given by a filename, storing them in a given array fragment.static intloadLongs(java.io.BufferedReader reader, long[] array)Loads elements from a given buffered reader, storing them in a given array.static longloadLongs(java.io.BufferedReader reader, long[][] array)Loads elements from a given buffered reader, storing them in a given array.static longloadLongs(java.io.BufferedReader reader, long[][] array, long offset, long length)Loads elements from a given fast buffered reader, storing them in a given big-array fragment.static intloadLongs(java.io.BufferedReader reader, long[] array, int offset, int length)Loads elements from a given fast buffered reader, storing them in a given array fragment.static intloadLongs(java.io.File file, long[] array)Loads elements from a file given by aFileobject, storing them in a given array.static longloadLongs(java.io.File file, long[][] array)Loads elements from a file given by aFileobject, storing them in a given array.static longloadLongs(java.io.File file, long[][] array, long offset, long length)Loads elements from a file given by aFileobject, storing them in a given big-array fragment.static intloadLongs(java.io.File file, long[] array, int offset, int length)Loads elements from a file given by aFileobject, storing them in a given array fragment.static intloadLongs(java.lang.CharSequence filename, long[] array)Loads elements from a file given by a filename, storing them in a given array.static longloadLongs(java.lang.CharSequence filename, long[][] array)Loads elements from a file given by a filename, storing them in a given array.static longloadLongs(java.lang.CharSequence filename, long[][] array, long offset, long length)Loads elements from a file given by a filename, storing them in a given big-array fragment.static intloadLongs(java.lang.CharSequence filename, long[] array, int offset, int length)Loads elements from a file given by a filename, storing them in a given array fragment.static intloadShorts(java.io.BufferedReader reader, short[] array)Loads elements from a given buffered reader, storing them in a given array.static longloadShorts(java.io.BufferedReader reader, short[][] array)Loads elements from a given buffered reader, storing them in a given array.static longloadShorts(java.io.BufferedReader reader, short[][] array, long offset, long length)Loads elements from a given fast buffered reader, storing them in a given big-array fragment.static intloadShorts(java.io.BufferedReader reader, short[] array, int offset, int length)Loads elements from a given fast buffered reader, storing them in a given array fragment.static intloadShorts(java.io.File file, short[] array)Loads elements from a file given by aFileobject, storing them in a given array.static longloadShorts(java.io.File file, short[][] array)Loads elements from a file given by aFileobject, storing them in a given array.static longloadShorts(java.io.File file, short[][] array, long offset, long length)Loads elements from a file given by aFileobject, storing them in a given big-array fragment.static intloadShorts(java.io.File file, short[] array, int offset, int length)Loads elements from a file given by aFileobject, storing them in a given array fragment.static intloadShorts(java.lang.CharSequence filename, short[] array)Loads elements from a file given by a filename, storing them in a given array.static longloadShorts(java.lang.CharSequence filename, short[][] array)Loads elements from a file given by a filename, storing them in a given array.static longloadShorts(java.lang.CharSequence filename, short[][] array, long offset, long length)Loads elements from a file given by a filename, storing them in a given big-array fragment.static intloadShorts(java.lang.CharSequence filename, short[] array, int offset, int length)Loads elements from a file given by a filename, storing them in a given array fragment.static voidstoreBooleans(boolean[][] array, long offset, long length, java.io.File file)Stores a big-array fragment to a file given by aFileobject.static voidstoreBooleans(boolean[][] array, long offset, long length, java.io.PrintStream stream)Stores a big-array fragment to a given print stream.static voidstoreBooleans(boolean[][] array, long offset, long length, java.lang.CharSequence filename)Stores a big-array fragment to a file given by a pathname.static voidstoreBooleans(boolean[][] array, java.io.File file)Stores a big array to a file given by aFileobject.static voidstoreBooleans(boolean[][] array, java.io.PrintStream stream)Stores a big array to a given print stream.static voidstoreBooleans(boolean[][] array, java.lang.CharSequence filename)Stores a big array to a file given by a pathname.static voidstoreBooleans(boolean[] array, int offset, int length, java.io.File file)Stores an array fragment to a file given by aFileobject.static voidstoreBooleans(boolean[] array, int offset, int length, java.io.PrintStream stream)Stores an array fragment to a given print stream.static voidstoreBooleans(boolean[] array, int offset, int length, java.lang.CharSequence filename)Stores an array fragment to a file given by a pathname.static voidstoreBooleans(boolean[] array, java.io.File file)Stores an array to a file given by aFileobject.static voidstoreBooleans(boolean[] array, java.io.PrintStream stream)Stores an array to a given print stream.static voidstoreBooleans(boolean[] array, java.lang.CharSequence filename)Stores an array to a file given by a pathname.static voidstoreBooleans(BooleanIterator i, java.io.File file)Stores the element returned by an iterator to a file given by aFileobject.static voidstoreBooleans(BooleanIterator i, java.io.PrintStream stream)Stores the element returned by an iterator to a given print stream.static voidstoreBooleans(BooleanIterator i, java.lang.CharSequence filename)Stores the element returned by an iterator to a file given by a pathname.static voidstoreBytes(byte[][] array, long offset, long length, java.io.File file)Stores a big-array fragment to a file given by aFileobject.static voidstoreBytes(byte[][] array, long offset, long length, java.io.PrintStream stream)Stores a big-array fragment to a given print stream.static voidstoreBytes(byte[][] array, long offset, long length, java.lang.CharSequence filename)Stores a big-array fragment to a file given by a pathname.static voidstoreBytes(byte[][] array, java.io.File file)Stores a big array to a file given by aFileobject.static voidstoreBytes(byte[][] array, java.io.PrintStream stream)Stores a big array to a given print stream.static voidstoreBytes(byte[][] array, java.lang.CharSequence filename)Stores a big array to a file given by a pathname.static voidstoreBytes(byte[] array, int offset, int length, java.io.File file)Stores an array fragment to a file given by aFileobject.static voidstoreBytes(byte[] array, int offset, int length, java.io.PrintStream stream)Stores an array fragment to a given print stream.static voidstoreBytes(byte[] array, int offset, int length, java.lang.CharSequence filename)Stores an array fragment to a file given by a pathname.static voidstoreBytes(byte[] array, java.io.File file)Stores an array to a file given by aFileobject.static voidstoreBytes(byte[] array, java.io.PrintStream stream)Stores an array to a given print stream.static voidstoreBytes(byte[] array, java.lang.CharSequence filename)Stores an array to a file given by a pathname.static voidstoreBytes(ByteIterator i, java.io.File file)Stores the element returned by an iterator to a file given by aFileobject.static voidstoreBytes(ByteIterator i, java.io.PrintStream stream)Stores the element returned by an iterator to a given print stream.static voidstoreBytes(ByteIterator i, java.lang.CharSequence filename)Stores the element returned by an iterator to a file given by a pathname.static voidstoreDoubles(double[][] array, long offset, long length, java.io.File file)Stores a big-array fragment to a file given by aFileobject.static voidstoreDoubles(double[][] array, long offset, long length, java.io.PrintStream stream)Stores a big-array fragment to a given print stream.static voidstoreDoubles(double[][] array, long offset, long length, java.lang.CharSequence filename)Stores a big-array fragment to a file given by a pathname.static voidstoreDoubles(double[][] array, java.io.File file)Stores a big array to a file given by aFileobject.static voidstoreDoubles(double[][] array, java.io.PrintStream stream)Stores a big array to a given print stream.static voidstoreDoubles(double[][] array, java.lang.CharSequence filename)Stores a big array to a file given by a pathname.static voidstoreDoubles(double[] array, int offset, int length, java.io.File file)Stores an array fragment to a file given by aFileobject.static voidstoreDoubles(double[] array, int offset, int length, java.io.PrintStream stream)Stores an array fragment to a given print stream.static voidstoreDoubles(double[] array, int offset, int length, java.lang.CharSequence filename)Stores an array fragment to a file given by a pathname.static voidstoreDoubles(double[] array, java.io.File file)Stores an array to a file given by aFileobject.static voidstoreDoubles(double[] array, java.io.PrintStream stream)Stores an array to a given print stream.static voidstoreDoubles(double[] array, java.lang.CharSequence filename)Stores an array to a file given by a pathname.static voidstoreDoubles(DoubleIterator i, java.io.File file)Stores the element returned by an iterator to a file given by aFileobject.static voidstoreDoubles(DoubleIterator i, java.io.PrintStream stream)Stores the element returned by an iterator to a given print stream.static voidstoreDoubles(DoubleIterator i, java.lang.CharSequence filename)Stores the element returned by an iterator to a file given by a pathname.static voidstoreFloats(float[][] array, long offset, long length, java.io.File file)Stores a big-array fragment to a file given by aFileobject.static voidstoreFloats(float[][] array, long offset, long length, java.io.PrintStream stream)Stores a big-array fragment to a given print stream.static voidstoreFloats(float[][] array, long offset, long length, java.lang.CharSequence filename)Stores a big-array fragment to a file given by a pathname.static voidstoreFloats(float[][] array, java.io.File file)Stores a big array to a file given by aFileobject.static voidstoreFloats(float[][] array, java.io.PrintStream stream)Stores a big array to a given print stream.static voidstoreFloats(float[][] array, java.lang.CharSequence filename)Stores a big array to a file given by a pathname.static voidstoreFloats(float[] array, int offset, int length, java.io.File file)Stores an array fragment to a file given by aFileobject.static voidstoreFloats(float[] array, int offset, int length, java.io.PrintStream stream)Stores an array fragment to a given print stream.static voidstoreFloats(float[] array, int offset, int length, java.lang.CharSequence filename)Stores an array fragment to a file given by a pathname.static voidstoreFloats(float[] array, java.io.File file)Stores an array to a file given by aFileobject.static voidstoreFloats(float[] array, java.io.PrintStream stream)Stores an array to a given print stream.static voidstoreFloats(float[] array, java.lang.CharSequence filename)Stores an array to a file given by a pathname.static voidstoreFloats(FloatIterator i, java.io.File file)Stores the element returned by an iterator to a file given by aFileobject.static voidstoreFloats(FloatIterator i, java.io.PrintStream stream)Stores the element returned by an iterator to a given print stream.static voidstoreFloats(FloatIterator i, java.lang.CharSequence filename)Stores the element returned by an iterator to a file given by a pathname.static voidstoreInts(int[][] array, long offset, long length, java.io.File file)Stores a big-array fragment to a file given by aFileobject.static voidstoreInts(int[][] array, long offset, long length, java.io.PrintStream stream)Stores a big-array fragment to a given print stream.static voidstoreInts(int[][] array, long offset, long length, java.lang.CharSequence filename)Stores a big-array fragment to a file given by a pathname.static voidstoreInts(int[][] array, java.io.File file)Stores a big array to a file given by aFileobject.static voidstoreInts(int[][] array, java.io.PrintStream stream)Stores a big array to a given print stream.static voidstoreInts(int[][] array, java.lang.CharSequence filename)Stores a big array to a file given by a pathname.static voidstoreInts(int[] array, int offset, int length, java.io.File file)Stores an array fragment to a file given by aFileobject.static voidstoreInts(int[] array, int offset, int length, java.io.PrintStream stream)Stores an array fragment to a given print stream.static voidstoreInts(int[] array, int offset, int length, java.lang.CharSequence filename)Stores an array fragment to a file given by a pathname.static voidstoreInts(int[] array, java.io.File file)Stores an array to a file given by aFileobject.static voidstoreInts(int[] array, java.io.PrintStream stream)Stores an array to a given print stream.static voidstoreInts(int[] array, java.lang.CharSequence filename)Stores an array to a file given by a pathname.static voidstoreInts(IntIterator i, java.io.File file)Stores the element returned by an iterator to a file given by aFileobject.static voidstoreInts(IntIterator i, java.io.PrintStream stream)Stores the element returned by an iterator to a given print stream.static voidstoreInts(IntIterator i, java.lang.CharSequence filename)Stores the element returned by an iterator to a file given by a pathname.static voidstoreLongs(long[][] array, long offset, long length, java.io.File file)Stores a big-array fragment to a file given by aFileobject.static voidstoreLongs(long[][] array, long offset, long length, java.io.PrintStream stream)Stores a big-array fragment to a given print stream.static voidstoreLongs(long[][] array, long offset, long length, java.lang.CharSequence filename)Stores a big-array fragment to a file given by a pathname.static voidstoreLongs(long[][] array, java.io.File file)Stores a big array to a file given by aFileobject.static voidstoreLongs(long[][] array, java.io.PrintStream stream)Stores a big array to a given print stream.static voidstoreLongs(long[][] array, java.lang.CharSequence filename)Stores a big array to a file given by a pathname.static voidstoreLongs(long[] array, int offset, int length, java.io.File file)Stores an array fragment to a file given by aFileobject.static voidstoreLongs(long[] array, int offset, int length, java.io.PrintStream stream)Stores an array fragment to a given print stream.static voidstoreLongs(long[] array, int offset, int length, java.lang.CharSequence filename)Stores an array fragment to a file given by a pathname.static voidstoreLongs(long[] array, java.io.File file)Stores an array to a file given by aFileobject.static voidstoreLongs(long[] array, java.io.PrintStream stream)Stores an array to a given print stream.static voidstoreLongs(long[] array, java.lang.CharSequence filename)Stores an array to a file given by a pathname.static voidstoreLongs(LongIterator i, java.io.File file)Stores the element returned by an iterator to a file given by aFileobject.static voidstoreLongs(LongIterator i, java.io.PrintStream stream)Stores the element returned by an iterator to a given print stream.static voidstoreLongs(LongIterator i, java.lang.CharSequence filename)Stores the element returned by an iterator to a file given by a pathname.static voidstoreShorts(short[][] array, long offset, long length, java.io.File file)Stores a big-array fragment to a file given by aFileobject.static voidstoreShorts(short[][] array, long offset, long length, java.io.PrintStream stream)Stores a big-array fragment to a given print stream.static voidstoreShorts(short[][] array, long offset, long length, java.lang.CharSequence filename)Stores a big-array fragment to a file given by a pathname.static voidstoreShorts(short[][] array, java.io.File file)Stores a big array to a file given by aFileobject.static voidstoreShorts(short[][] array, java.io.PrintStream stream)Stores a big array to a given print stream.static voidstoreShorts(short[][] array, java.lang.CharSequence filename)Stores a big array to a file given by a pathname.static voidstoreShorts(short[] array, int offset, int length, java.io.File file)Stores an array fragment to a file given by aFileobject.static voidstoreShorts(short[] array, int offset, int length, java.io.PrintStream stream)Stores an array fragment to a given print stream.static voidstoreShorts(short[] array, int offset, int length, java.lang.CharSequence filename)Stores an array fragment to a file given by a pathname.static voidstoreShorts(short[] array, java.io.File file)Stores an array to a file given by aFileobject.static voidstoreShorts(short[] array, java.io.PrintStream stream)Stores an array to a given print stream.static voidstoreShorts(short[] array, java.lang.CharSequence filename)Stores an array to a file given by a pathname.static voidstoreShorts(ShortIterator i, java.io.File file)Stores the element returned by an iterator to a file given by aFileobject.static voidstoreShorts(ShortIterator i, java.io.PrintStream stream)Stores the element returned by an iterator to a given print stream.static voidstoreShorts(ShortIterator i, java.lang.CharSequence filename)Stores the element returned by an iterator to a file given by a pathname.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
BUFFER_SIZE
public static final int BUFFER_SIZEThe size of the buffer used for all I/O on files.- See Also:
- Constant Field Values
-
-
Method Details
-
loadInts
public static int loadInts(java.io.BufferedReader reader, int[] array, int offset, int length) throws java.io.IOExceptionLoads elements from a given fast buffered reader, storing them in a given array fragment.- Parameters:
reader- a buffered reader.array- an array which will be filled with data fromreader.offset- the index of the first element ofarrayto be filled.length- the number of elements ofarrayto be filled.- Returns:
- the number of elements actually read from
reader(it might be less thanlengthifreaderends). - Throws:
java.io.IOException
-
loadInts
public static int loadInts(java.io.BufferedReader reader, int[] array) throws java.io.IOExceptionLoads elements from a given buffered reader, storing them in a given array.- Parameters:
reader- a buffered reader.array- an array which will be filled with data fromreader.- Returns:
- the number of elements actually read from
reader(it might be less than the array length ifreaderends). - Throws:
java.io.IOException
-
loadInts
public static int loadInts(java.io.File file, int[] array, int offset, int length) throws java.io.IOExceptionLoads elements from a file given by aFileobject, storing them in a given array fragment.- Parameters:
file- a file.array- an array which will be filled with data from the specified file.offset- the index of the first element ofarrayto be filled.length- the number of elements ofarrayto be filled.- Returns:
- the number of elements actually read from the given file (it might be less than
lengthif the file is too short). - Throws:
java.io.IOException
-
loadInts
public static int loadInts(java.lang.CharSequence filename, int[] array, int offset, int length) throws java.io.IOExceptionLoads elements from a file given by a filename, storing them in a given array fragment.- Parameters:
filename- a filename.array- an array which will be filled with data from the specified file.offset- the index of the first element ofarrayto be filled.length- the number of elements ofarrayto be filled.- Returns:
- the number of elements actually read from the given file (it might be less than
lengthif the file is too short). - Throws:
java.io.IOException
-
loadInts
public static int loadInts(java.io.File file, int[] array) throws java.io.IOExceptionLoads elements from a file given by aFileobject, storing them in a given array.- Parameters:
file- a file.array- an array which will be filled with data from the specified file.- Returns:
- the number of elements actually read from the given file (it might be less than the array length if the file is too short).
- Throws:
java.io.IOException
-
loadInts
public static int loadInts(java.lang.CharSequence filename, int[] array) throws java.io.IOExceptionLoads elements from a file given by a filename, storing them in a given array.- Parameters:
filename- a filename.array- an array which will be filled with data from the specified file.- Returns:
- the number of elements actually read from the given file (it might be less than the array length if the file is too short).
- Throws:
java.io.IOException
-
storeInts
public static void storeInts(int[] array, int offset, int length, java.io.PrintStream stream)Stores an array fragment to a given print stream.- Parameters:
array- an array whose elements will be written tostream.offset- the index of the first element ofarrayto be written.length- the number of elements ofarrayto be written.stream- a print stream.
-
storeInts
public static void storeInts(int[] array, java.io.PrintStream stream)Stores an array to a given print stream.- Parameters:
array- an array whose elements will be written tostream.stream- a print stream.
-
storeInts
public static void storeInts(int[] array, int offset, int length, java.io.File file) throws java.io.IOExceptionStores an array fragment to a file given by aFileobject.- Parameters:
array- an array whose elements will be written tofilename.offset- the index of the first element ofarrayto be written.length- the number of elements ofarrayto be written.file- a file.- Throws:
java.io.IOException
-
storeInts
public static void storeInts(int[] array, int offset, int length, java.lang.CharSequence filename) throws java.io.IOExceptionStores an array fragment to a file given by a pathname.- Parameters:
array- an array whose elements will be written tofilename.offset- the index of the first element ofarrayto be written.length- the number of elements ofarrayto be written.filename- a filename.- Throws:
java.io.IOException
-
storeInts
public static void storeInts(int[] array, java.io.File file) throws java.io.IOExceptionStores an array to a file given by aFileobject.- Parameters:
array- an array whose elements will be written tofilename.file- a file.- Throws:
java.io.IOException
-
storeInts
public static void storeInts(int[] array, java.lang.CharSequence filename) throws java.io.IOExceptionStores an array to a file given by a pathname.- Parameters:
array- an array whose elements will be written tofilename.filename- a filename.- Throws:
java.io.IOException
-
storeInts
Stores the element returned by an iterator to a given print stream.- Parameters:
i- an iterator whose output will be written tostream.stream- a print stream.
-
storeInts
Stores the element returned by an iterator to a file given by aFileobject.- Parameters:
i- an iterator whose output will be written tofilename.file- a file.- Throws:
java.io.IOException
-
storeInts
public static void storeInts(IntIterator i, java.lang.CharSequence filename) throws java.io.IOExceptionStores the element returned by an iterator to a file given by a pathname.- Parameters:
i- an iterator whose output will be written tofilename.filename- a filename.- Throws:
java.io.IOException
-
loadInts
public static long loadInts(java.io.BufferedReader reader, int[][] array, long offset, long length) throws java.io.IOExceptionLoads elements from a given fast buffered reader, storing them in a given big-array fragment.- Parameters:
reader- a buffered reader.array- a big array which will be filled with data fromreader.offset- the index of the first element ofarrayto be filled.length- the number of elements ofarrayto be filled.- Returns:
- the number of elements actually read from
reader(it might be less thanlengthifreaderends). - Throws:
java.io.IOException
-
loadInts
public static long loadInts(java.io.BufferedReader reader, int[][] array) throws java.io.IOExceptionLoads elements from a given buffered reader, storing them in a given array.- Parameters:
reader- a buffered reader.array- a big array which will be filled with data fromreader.- Returns:
- the number of elements actually read from
reader(it might be less than the array length ifreaderends). - Throws:
java.io.IOException
-
loadInts
public static long loadInts(java.io.File file, int[][] array, long offset, long length) throws java.io.IOExceptionLoads elements from a file given by aFileobject, storing them in a given big-array fragment.- Parameters:
file- a file.array- a big array which will be filled with data from the specified file.offset- the index of the first element ofarrayto be filled.length- the number of elements ofarrayto be filled.- Returns:
- the number of elements actually read from the given file (it might be less than
lengthif the file is too short). - Throws:
java.io.IOException
-
loadInts
public static long loadInts(java.lang.CharSequence filename, int[][] array, long offset, long length) throws java.io.IOExceptionLoads elements from a file given by a filename, storing them in a given big-array fragment.- Parameters:
filename- a filename.array- a big array which will be filled with data from the specified file.offset- the index of the first element ofarrayto be filled.length- the number of elements ofarrayto be filled.- Returns:
- the number of elements actually read from the given file (it might be less than
lengthif the file is too short). - Throws:
java.io.IOException
-
loadInts
public static long loadInts(java.io.File file, int[][] array) throws java.io.IOExceptionLoads elements from a file given by aFileobject, storing them in a given array.- Parameters:
file- a file.array- a big array which will be filled with data from the specified file.- Returns:
- the number of elements actually read from the given file (it might be less than the array length if the file is too short).
- Throws:
java.io.IOException
-
loadInts
public static long loadInts(java.lang.CharSequence filename, int[][] array) throws java.io.IOExceptionLoads elements from a file given by a filename, storing them in a given array.- Parameters:
filename- a filename.array- a big array which will be filled with data from the specified file.- Returns:
- the number of elements actually read from the given file (it might be less than the array length if the file is too short).
- Throws:
java.io.IOException
-
storeInts
public static void storeInts(int[][] array, long offset, long length, java.io.PrintStream stream)Stores a big-array fragment to a given print stream.- Parameters:
array- a big array whose elements will be written tostream.offset- the index of the first element ofarrayto be written.length- the number of elements ofarrayto be written.stream- a print stream.
-
storeInts
public static void storeInts(int[][] array, java.io.PrintStream stream)Stores a big array to a given print stream.- Parameters:
array- a big array whose elements will be written tostream.stream- a print stream.
-
storeInts
public static void storeInts(int[][] array, long offset, long length, java.io.File file) throws java.io.IOExceptionStores a big-array fragment to a file given by aFileobject.- Parameters:
array- a big array whose elements will be written tofilename.offset- the index of the first element ofarrayto be written.length- the number of elements ofarrayto be written.file- a file.- Throws:
java.io.IOException
-
storeInts
public static void storeInts(int[][] array, long offset, long length, java.lang.CharSequence filename) throws java.io.IOExceptionStores a big-array fragment to a file given by a pathname.- Parameters:
array- a big array whose elements will be written tofilename.offset- the index of the first element ofarrayto be written.length- the number of elements ofarrayto be written.filename- a filename.- Throws:
java.io.IOException
-
storeInts
public static void storeInts(int[][] array, java.io.File file) throws java.io.IOExceptionStores a big array to a file given by aFileobject.- Parameters:
array- a big array whose elements will be written tofilename.file- a file.- Throws:
java.io.IOException
-
storeInts
public static void storeInts(int[][] array, java.lang.CharSequence filename) throws java.io.IOExceptionStores a big array to a file given by a pathname.- Parameters:
array- a big array whose elements will be written tofilename.filename- a filename.- Throws:
java.io.IOException
-
asIntIterator
Wraps the given buffered reader into an iterator.- Parameters:
reader- a buffered reader.
-
asIntIterator
Wraps a file given by aFileobject into an iterator.- Parameters:
file- a file.- Throws:
java.io.IOException
-
asIntIterator
public static IntIterator asIntIterator(java.lang.CharSequence filename) throws java.io.IOExceptionWraps a file given by a pathname into an iterator.- Parameters:
filename- a filename.- Throws:
java.io.IOException
-
asIntIterable
Wraps a file given by aFileobject into an iterable object.- Parameters:
file- a file.
-
asIntIterable
Wraps a file given by a pathname into an iterable object.- Parameters:
filename- a filename.
-
loadLongs
public static int loadLongs(java.io.BufferedReader reader, long[] array, int offset, int length) throws java.io.IOExceptionLoads elements from a given fast buffered reader, storing them in a given array fragment.- Parameters:
reader- a buffered reader.array- an array which will be filled with data fromreader.offset- the index of the first element ofarrayto be filled.length- the number of elements ofarrayto be filled.- Returns:
- the number of elements actually read from
reader(it might be less thanlengthifreaderends). - Throws:
java.io.IOException
-
loadLongs
public static int loadLongs(java.io.BufferedReader reader, long[] array) throws java.io.IOExceptionLoads elements from a given buffered reader, storing them in a given array.- Parameters:
reader- a buffered reader.array- an array which will be filled with data fromreader.- Returns:
- the number of elements actually read from
reader(it might be less than the array length ifreaderends). - Throws:
java.io.IOException
-
loadLongs
public static int loadLongs(java.io.File file, long[] array, int offset, int length) throws java.io.IOExceptionLoads elements from a file given by aFileobject, storing them in a given array fragment.- Parameters:
file- a file.array- an array which will be filled with data from the specified file.offset- the index of the first element ofarrayto be filled.length- the number of elements ofarrayto be filled.- Returns:
- the number of elements actually read from the given file (it might be less than
lengthif the file is too short). - Throws:
java.io.IOException
-
loadLongs
public static int loadLongs(java.lang.CharSequence filename, long[] array, int offset, int length) throws java.io.IOExceptionLoads elements from a file given by a filename, storing them in a given array fragment.- Parameters:
filename- a filename.array- an array which will be filled with data from the specified file.offset- the index of the first element ofarrayto be filled.length- the number of elements ofarrayto be filled.- Returns:
- the number of elements actually read from the given file (it might be less than
lengthif the file is too short). - Throws:
java.io.IOException
-
loadLongs
public static int loadLongs(java.io.File file, long[] array) throws java.io.IOExceptionLoads elements from a file given by aFileobject, storing them in a given array.- Parameters:
file- a file.array- an array which will be filled with data from the specified file.- Returns:
- the number of elements actually read from the given file (it might be less than the array length if the file is too short).
- Throws:
java.io.IOException
-
loadLongs
public static int loadLongs(java.lang.CharSequence filename, long[] array) throws java.io.IOExceptionLoads elements from a file given by a filename, storing them in a given array.- Parameters:
filename- a filename.array- an array which will be filled with data from the specified file.- Returns:
- the number of elements actually read from the given file (it might be less than the array length if the file is too short).
- Throws:
java.io.IOException
-
storeLongs
public static void storeLongs(long[] array, int offset, int length, java.io.PrintStream stream)Stores an array fragment to a given print stream.- Parameters:
array- an array whose elements will be written tostream.offset- the index of the first element ofarrayto be written.length- the number of elements ofarrayto be written.stream- a print stream.
-
storeLongs
public static void storeLongs(long[] array, java.io.PrintStream stream)Stores an array to a given print stream.- Parameters:
array- an array whose elements will be written tostream.stream- a print stream.
-
storeLongs
public static void storeLongs(long[] array, int offset, int length, java.io.File file) throws java.io.IOExceptionStores an array fragment to a file given by aFileobject.- Parameters:
array- an array whose elements will be written tofilename.offset- the index of the first element ofarrayto be written.length- the number of elements ofarrayto be written.file- a file.- Throws:
java.io.IOException
-
storeLongs
public static void storeLongs(long[] array, int offset, int length, java.lang.CharSequence filename) throws java.io.IOExceptionStores an array fragment to a file given by a pathname.- Parameters:
array- an array whose elements will be written tofilename.offset- the index of the first element ofarrayto be written.length- the number of elements ofarrayto be written.filename- a filename.- Throws:
java.io.IOException
-
storeLongs
public static void storeLongs(long[] array, java.io.File file) throws java.io.IOExceptionStores an array to a file given by aFileobject.- Parameters:
array- an array whose elements will be written tofilename.file- a file.- Throws:
java.io.IOException
-
storeLongs
public static void storeLongs(long[] array, java.lang.CharSequence filename) throws java.io.IOExceptionStores an array to a file given by a pathname.- Parameters:
array- an array whose elements will be written tofilename.filename- a filename.- Throws:
java.io.IOException
-
storeLongs
Stores the element returned by an iterator to a given print stream.- Parameters:
i- an iterator whose output will be written tostream.stream- a print stream.
-
storeLongs
Stores the element returned by an iterator to a file given by aFileobject.- Parameters:
i- an iterator whose output will be written tofilename.file- a file.- Throws:
java.io.IOException
-
storeLongs
public static void storeLongs(LongIterator i, java.lang.CharSequence filename) throws java.io.IOExceptionStores the element returned by an iterator to a file given by a pathname.- Parameters:
i- an iterator whose output will be written tofilename.filename- a filename.- Throws:
java.io.IOException
-
loadLongs
public static long loadLongs(java.io.BufferedReader reader, long[][] array, long offset, long length) throws java.io.IOExceptionLoads elements from a given fast buffered reader, storing them in a given big-array fragment.- Parameters:
reader- a buffered reader.array- a big array which will be filled with data fromreader.offset- the index of the first element ofarrayto be filled.length- the number of elements ofarrayto be filled.- Returns:
- the number of elements actually read from
reader(it might be less thanlengthifreaderends). - Throws:
java.io.IOException
-
loadLongs
public static long loadLongs(java.io.BufferedReader reader, long[][] array) throws java.io.IOExceptionLoads elements from a given buffered reader, storing them in a given array.- Parameters:
reader- a buffered reader.array- a big array which will be filled with data fromreader.- Returns:
- the number of elements actually read from
reader(it might be less than the array length ifreaderends). - Throws:
java.io.IOException
-
loadLongs
public static long loadLongs(java.io.File file, long[][] array, long offset, long length) throws java.io.IOExceptionLoads elements from a file given by aFileobject, storing them in a given big-array fragment.- Parameters:
file- a file.array- a big array which will be filled with data from the specified file.offset- the index of the first element ofarrayto be filled.length- the number of elements ofarrayto be filled.- Returns:
- the number of elements actually read from the given file (it might be less than
lengthif the file is too short). - Throws:
java.io.IOException
-
loadLongs
public static long loadLongs(java.lang.CharSequence filename, long[][] array, long offset, long length) throws java.io.IOExceptionLoads elements from a file given by a filename, storing them in a given big-array fragment.- Parameters:
filename- a filename.array- a big array which will be filled with data from the specified file.offset- the index of the first element ofarrayto be filled.length- the number of elements ofarrayto be filled.- Returns:
- the number of elements actually read from the given file (it might be less than
lengthif the file is too short). - Throws:
java.io.IOException
-
loadLongs
public static long loadLongs(java.io.File file, long[][] array) throws java.io.IOExceptionLoads elements from a file given by aFileobject, storing them in a given array.- Parameters:
file- a file.array- a big array which will be filled with data from the specified file.- Returns:
- the number of elements actually read from the given file (it might be less than the array length if the file is too short).
- Throws:
java.io.IOException
-
loadLongs
public static long loadLongs(java.lang.CharSequence filename, long[][] array) throws java.io.IOExceptionLoads elements from a file given by a filename, storing them in a given array.- Parameters:
filename- a filename.array- a big array which will be filled with data from the specified file.- Returns:
- the number of elements actually read from the given file (it might be less than the array length if the file is too short).
- Throws:
java.io.IOException
-
storeLongs
public static void storeLongs(long[][] array, long offset, long length, java.io.PrintStream stream)Stores a big-array fragment to a given print stream.- Parameters:
array- a big array whose elements will be written tostream.offset- the index of the first element ofarrayto be written.length- the number of elements ofarrayto be written.stream- a print stream.
-
storeLongs
public static void storeLongs(long[][] array, java.io.PrintStream stream)Stores a big array to a given print stream.- Parameters:
array- a big array whose elements will be written tostream.stream- a print stream.
-
storeLongs
public static void storeLongs(long[][] array, long offset, long length, java.io.File file) throws java.io.IOExceptionStores a big-array fragment to a file given by aFileobject.- Parameters:
array- a big array whose elements will be written tofilename.offset- the index of the first element ofarrayto be written.length- the number of elements ofarrayto be written.file- a file.- Throws:
java.io.IOException
-
storeLongs
public static void storeLongs(long[][] array, long offset, long length, java.lang.CharSequence filename) throws java.io.IOExceptionStores a big-array fragment to a file given by a pathname.- Parameters:
array- a big array whose elements will be written tofilename.offset- the index of the first element ofarrayto be written.length- the number of elements ofarrayto be written.filename- a filename.- Throws:
java.io.IOException
-
storeLongs
public static void storeLongs(long[][] array, java.io.File file) throws java.io.IOExceptionStores a big array to a file given by aFileobject.- Parameters:
array- a big array whose elements will be written tofilename.file- a file.- Throws:
java.io.IOException
-
storeLongs
public static void storeLongs(long[][] array, java.lang.CharSequence filename) throws java.io.IOExceptionStores a big array to a file given by a pathname.- Parameters:
array- a big array whose elements will be written tofilename.filename- a filename.- Throws:
java.io.IOException
-
asLongIterator
Wraps the given buffered reader into an iterator.- Parameters:
reader- a buffered reader.
-
asLongIterator
Wraps a file given by aFileobject into an iterator.- Parameters:
file- a file.- Throws:
java.io.IOException
-
asLongIterator
public static LongIterator asLongIterator(java.lang.CharSequence filename) throws java.io.IOExceptionWraps a file given by a pathname into an iterator.- Parameters:
filename- a filename.- Throws:
java.io.IOException
-
asLongIterable
Wraps a file given by aFileobject into an iterable object.- Parameters:
file- a file.
-
asLongIterable
Wraps a file given by a pathname into an iterable object.- Parameters:
filename- a filename.
-
loadDoubles
public static int loadDoubles(java.io.BufferedReader reader, double[] array, int offset, int length) throws java.io.IOExceptionLoads elements from a given fast buffered reader, storing them in a given array fragment.- Parameters:
reader- a buffered reader.array- an array which will be filled with data fromreader.offset- the index of the first element ofarrayto be filled.length- the number of elements ofarrayto be filled.- Returns:
- the number of elements actually read from
reader(it might be less thanlengthifreaderends). - Throws:
java.io.IOException
-
loadDoubles
public static int loadDoubles(java.io.BufferedReader reader, double[] array) throws java.io.IOExceptionLoads elements from a given buffered reader, storing them in a given array.- Parameters:
reader- a buffered reader.array- an array which will be filled with data fromreader.- Returns:
- the number of elements actually read from
reader(it might be less than the array length ifreaderends). - Throws:
java.io.IOException
-
loadDoubles
public static int loadDoubles(java.io.File file, double[] array, int offset, int length) throws java.io.IOExceptionLoads elements from a file given by aFileobject, storing them in a given array fragment.- Parameters:
file- a file.array- an array which will be filled with data from the specified file.offset- the index of the first element ofarrayto be filled.length- the number of elements ofarrayto be filled.- Returns:
- the number of elements actually read from the given file (it might be less than
lengthif the file is too short). - Throws:
java.io.IOException
-
loadDoubles
public static int loadDoubles(java.lang.CharSequence filename, double[] array, int offset, int length) throws java.io.IOExceptionLoads elements from a file given by a filename, storing them in a given array fragment.- Parameters:
filename- a filename.array- an array which will be filled with data from the specified file.offset- the index of the first element ofarrayto be filled.length- the number of elements ofarrayto be filled.- Returns:
- the number of elements actually read from the given file (it might be less than
lengthif the file is too short). - Throws:
java.io.IOException
-
loadDoubles
public static int loadDoubles(java.io.File file, double[] array) throws java.io.IOExceptionLoads elements from a file given by aFileobject, storing them in a given array.- Parameters:
file- a file.array- an array which will be filled with data from the specified file.- Returns:
- the number of elements actually read from the given file (it might be less than the array length if the file is too short).
- Throws:
java.io.IOException
-
loadDoubles
public static int loadDoubles(java.lang.CharSequence filename, double[] array) throws java.io.IOExceptionLoads elements from a file given by a filename, storing them in a given array.- Parameters:
filename- a filename.array- an array which will be filled with data from the specified file.- Returns:
- the number of elements actually read from the given file (it might be less than the array length if the file is too short).
- Throws:
java.io.IOException
-
storeDoubles
public static void storeDoubles(double[] array, int offset, int length, java.io.PrintStream stream)Stores an array fragment to a given print stream.- Parameters:
array- an array whose elements will be written tostream.offset- the index of the first element ofarrayto be written.length- the number of elements ofarrayto be written.stream- a print stream.
-
storeDoubles
public static void storeDoubles(double[] array, java.io.PrintStream stream)Stores an array to a given print stream.- Parameters:
array- an array whose elements will be written tostream.stream- a print stream.
-
storeDoubles
public static void storeDoubles(double[] array, int offset, int length, java.io.File file) throws java.io.IOExceptionStores an array fragment to a file given by aFileobject.- Parameters:
array- an array whose elements will be written tofilename.offset- the index of the first element ofarrayto be written.length- the number of elements ofarrayto be written.file- a file.- Throws:
java.io.IOException
-
storeDoubles
public static void storeDoubles(double[] array, int offset, int length, java.lang.CharSequence filename) throws java.io.IOExceptionStores an array fragment to a file given by a pathname.- Parameters:
array- an array whose elements will be written tofilename.offset- the index of the first element ofarrayto be written.length- the number of elements ofarrayto be written.filename- a filename.- Throws:
java.io.IOException
-
storeDoubles
public static void storeDoubles(double[] array, java.io.File file) throws java.io.IOExceptionStores an array to a file given by aFileobject.- Parameters:
array- an array whose elements will be written tofilename.file- a file.- Throws:
java.io.IOException
-
storeDoubles
public static void storeDoubles(double[] array, java.lang.CharSequence filename) throws java.io.IOExceptionStores an array to a file given by a pathname.- Parameters:
array- an array whose elements will be written tofilename.filename- a filename.- Throws:
java.io.IOException
-
storeDoubles
Stores the element returned by an iterator to a given print stream.- Parameters:
i- an iterator whose output will be written tostream.stream- a print stream.
-
storeDoubles
Stores the element returned by an iterator to a file given by aFileobject.- Parameters:
i- an iterator whose output will be written tofilename.file- a file.- Throws:
java.io.IOException
-
storeDoubles
public static void storeDoubles(DoubleIterator i, java.lang.CharSequence filename) throws java.io.IOExceptionStores the element returned by an iterator to a file given by a pathname.- Parameters:
i- an iterator whose output will be written tofilename.filename- a filename.- Throws:
java.io.IOException
-
loadDoubles
public static long loadDoubles(java.io.BufferedReader reader, double[][] array, long offset, long length) throws java.io.IOExceptionLoads elements from a given fast buffered reader, storing them in a given big-array fragment.- Parameters:
reader- a buffered reader.array- a big array which will be filled with data fromreader.offset- the index of the first element ofarrayto be filled.length- the number of elements ofarrayto be filled.- Returns:
- the number of elements actually read from
reader(it might be less thanlengthifreaderends). - Throws:
java.io.IOException
-
loadDoubles
public static long loadDoubles(java.io.BufferedReader reader, double[][] array) throws java.io.IOExceptionLoads elements from a given buffered reader, storing them in a given array.- Parameters:
reader- a buffered reader.array- a big array which will be filled with data fromreader.- Returns:
- the number of elements actually read from
reader(it might be less than the array length ifreaderends). - Throws:
java.io.IOException
-
loadDoubles
public static long loadDoubles(java.io.File file, double[][] array, long offset, long length) throws java.io.IOExceptionLoads elements from a file given by aFileobject, storing them in a given big-array fragment.- Parameters:
file- a file.array- a big array which will be filled with data from the specified file.offset- the index of the first element ofarrayto be filled.length- the number of elements ofarrayto be filled.- Returns:
- the number of elements actually read from the given file (it might be less than
lengthif the file is too short). - Throws:
java.io.IOException
-
loadDoubles
public static long loadDoubles(java.lang.CharSequence filename, double[][] array, long offset, long length) throws java.io.IOExceptionLoads elements from a file given by a filename, storing them in a given big-array fragment.- Parameters:
filename- a filename.array- a big array which will be filled with data from the specified file.offset- the index of the first element ofarrayto be filled.length- the number of elements ofarrayto be filled.- Returns:
- the number of elements actually read from the given file (it might be less than
lengthif the file is too short). - Throws:
java.io.IOException
-
loadDoubles
public static long loadDoubles(java.io.File file, double[][] array) throws java.io.IOExceptionLoads elements from a file given by aFileobject, storing them in a given array.- Parameters:
file- a file.array- a big array which will be filled with data from the specified file.- Returns:
- the number of elements actually read from the given file (it might be less than the array length if the file is too short).
- Throws:
java.io.IOException
-
loadDoubles
public static long loadDoubles(java.lang.CharSequence filename, double[][] array) throws java.io.IOExceptionLoads elements from a file given by a filename, storing them in a given array.- Parameters:
filename- a filename.array- a big array which will be filled with data from the specified file.- Returns:
- the number of elements actually read from the given file (it might be less than the array length if the file is too short).
- Throws:
java.io.IOException
-
storeDoubles
public static void storeDoubles(double[][] array, long offset, long length, java.io.PrintStream stream)Stores a big-array fragment to a given print stream.- Parameters:
array- a big array whose elements will be written tostream.offset- the index of the first element ofarrayto be written.length- the number of elements ofarrayto be written.stream- a print stream.
-
storeDoubles
public static void storeDoubles(double[][] array, java.io.PrintStream stream)Stores a big array to a given print stream.- Parameters:
array- a big array whose elements will be written tostream.stream- a print stream.
-
storeDoubles
public static void storeDoubles(double[][] array, long offset, long length, java.io.File file) throws java.io.IOExceptionStores a big-array fragment to a file given by aFileobject.- Parameters:
array- a big array whose elements will be written tofilename.offset- the index of the first element ofarrayto be written.length- the number of elements ofarrayto be written.file- a file.- Throws:
java.io.IOException
-
storeDoubles
public static void storeDoubles(double[][] array, long offset, long length, java.lang.CharSequence filename) throws java.io.IOExceptionStores a big-array fragment to a file given by a pathname.- Parameters:
array- a big array whose elements will be written tofilename.offset- the index of the first element ofarrayto be written.length- the number of elements ofarrayto be written.filename- a filename.- Throws:
java.io.IOException
-
storeDoubles
public static void storeDoubles(double[][] array, java.io.File file) throws java.io.IOExceptionStores a big array to a file given by aFileobject.- Parameters:
array- a big array whose elements will be written tofilename.file- a file.- Throws:
java.io.IOException
-
storeDoubles
public static void storeDoubles(double[][] array, java.lang.CharSequence filename) throws java.io.IOExceptionStores a big array to a file given by a pathname.- Parameters:
array- a big array whose elements will be written tofilename.filename- a filename.- Throws:
java.io.IOException
-
asDoubleIterator
Wraps the given buffered reader into an iterator.- Parameters:
reader- a buffered reader.
-
asDoubleIterator
Wraps a file given by aFileobject into an iterator.- Parameters:
file- a file.- Throws:
java.io.IOException
-
asDoubleIterator
public static DoubleIterator asDoubleIterator(java.lang.CharSequence filename) throws java.io.IOExceptionWraps a file given by a pathname into an iterator.- Parameters:
filename- a filename.- Throws:
java.io.IOException
-
asDoubleIterable
Wraps a file given by aFileobject into an iterable object.- Parameters:
file- a file.
-
asDoubleIterable
Wraps a file given by a pathname into an iterable object.- Parameters:
filename- a filename.
-
loadBooleans
public static int loadBooleans(java.io.BufferedReader reader, boolean[] array, int offset, int length) throws java.io.IOExceptionLoads elements from a given fast buffered reader, storing them in a given array fragment.- Parameters:
reader- a buffered reader.array- an array which will be filled with data fromreader.offset- the index of the first element ofarrayto be filled.length- the number of elements ofarrayto be filled.- Returns:
- the number of elements actually read from
reader(it might be less thanlengthifreaderends). - Throws:
java.io.IOException
-
loadBooleans
public static int loadBooleans(java.io.BufferedReader reader, boolean[] array) throws java.io.IOExceptionLoads elements from a given buffered reader, storing them in a given array.- Parameters:
reader- a buffered reader.array- an array which will be filled with data fromreader.- Returns:
- the number of elements actually read from
reader(it might be less than the array length ifreaderends). - Throws:
java.io.IOException
-
loadBooleans
public static int loadBooleans(java.io.File file, boolean[] array, int offset, int length) throws java.io.IOExceptionLoads elements from a file given by aFileobject, storing them in a given array fragment.- Parameters:
file- a file.array- an array which will be filled with data from the specified file.offset- the index of the first element ofarrayto be filled.length- the number of elements ofarrayto be filled.- Returns:
- the number of elements actually read from the given file (it might be less than
lengthif the file is too short). - Throws:
java.io.IOException
-
loadBooleans
public static int loadBooleans(java.lang.CharSequence filename, boolean[] array, int offset, int length) throws java.io.IOExceptionLoads elements from a file given by a filename, storing them in a given array fragment.- Parameters:
filename- a filename.array- an array which will be filled with data from the specified file.offset- the index of the first element ofarrayto be filled.length- the number of elements ofarrayto be filled.- Returns:
- the number of elements actually read from the given file (it might be less than
lengthif the file is too short). - Throws:
java.io.IOException
-
loadBooleans
public static int loadBooleans(java.io.File file, boolean[] array) throws java.io.IOExceptionLoads elements from a file given by aFileobject, storing them in a given array.- Parameters:
file- a file.array- an array which will be filled with data from the specified file.- Returns:
- the number of elements actually read from the given file (it might be less than the array length if the file is too short).
- Throws:
java.io.IOException
-
loadBooleans
public static int loadBooleans(java.lang.CharSequence filename, boolean[] array) throws java.io.IOExceptionLoads elements from a file given by a filename, storing them in a given array.- Parameters:
filename- a filename.array- an array which will be filled with data from the specified file.- Returns:
- the number of elements actually read from the given file (it might be less than the array length if the file is too short).
- Throws:
java.io.IOException
-
storeBooleans
public static void storeBooleans(boolean[] array, int offset, int length, java.io.PrintStream stream)Stores an array fragment to a given print stream.- Parameters:
array- an array whose elements will be written tostream.offset- the index of the first element ofarrayto be written.length- the number of elements ofarrayto be written.stream- a print stream.
-
storeBooleans
public static void storeBooleans(boolean[] array, java.io.PrintStream stream)Stores an array to a given print stream.- Parameters:
array- an array whose elements will be written tostream.stream- a print stream.
-
storeBooleans
public static void storeBooleans(boolean[] array, int offset, int length, java.io.File file) throws java.io.IOExceptionStores an array fragment to a file given by aFileobject.- Parameters:
array- an array whose elements will be written tofilename.offset- the index of the first element ofarrayto be written.length- the number of elements ofarrayto be written.file- a file.- Throws:
java.io.IOException
-
storeBooleans
public static void storeBooleans(boolean[] array, int offset, int length, java.lang.CharSequence filename) throws java.io.IOExceptionStores an array fragment to a file given by a pathname.- Parameters:
array- an array whose elements will be written tofilename.offset- the index of the first element ofarrayto be written.length- the number of elements ofarrayto be written.filename- a filename.- Throws:
java.io.IOException
-
storeBooleans
public static void storeBooleans(boolean[] array, java.io.File file) throws java.io.IOExceptionStores an array to a file given by aFileobject.- Parameters:
array- an array whose elements will be written tofilename.file- a file.- Throws:
java.io.IOException
-
storeBooleans
public static void storeBooleans(boolean[] array, java.lang.CharSequence filename) throws java.io.IOExceptionStores an array to a file given by a pathname.- Parameters:
array- an array whose elements will be written tofilename.filename- a filename.- Throws:
java.io.IOException
-
storeBooleans
Stores the element returned by an iterator to a given print stream.- Parameters:
i- an iterator whose output will be written tostream.stream- a print stream.
-
storeBooleans
Stores the element returned by an iterator to a file given by aFileobject.- Parameters:
i- an iterator whose output will be written tofilename.file- a file.- Throws:
java.io.IOException
-
storeBooleans
public static void storeBooleans(BooleanIterator i, java.lang.CharSequence filename) throws java.io.IOExceptionStores the element returned by an iterator to a file given by a pathname.- Parameters:
i- an iterator whose output will be written tofilename.filename- a filename.- Throws:
java.io.IOException
-
loadBooleans
public static long loadBooleans(java.io.BufferedReader reader, boolean[][] array, long offset, long length) throws java.io.IOExceptionLoads elements from a given fast buffered reader, storing them in a given big-array fragment.- Parameters:
reader- a buffered reader.array- a big array which will be filled with data fromreader.offset- the index of the first element ofarrayto be filled.length- the number of elements ofarrayto be filled.- Returns:
- the number of elements actually read from
reader(it might be less thanlengthifreaderends). - Throws:
java.io.IOException
-
loadBooleans
public static long loadBooleans(java.io.BufferedReader reader, boolean[][] array) throws java.io.IOExceptionLoads elements from a given buffered reader, storing them in a given array.- Parameters:
reader- a buffered reader.array- a big array which will be filled with data fromreader.- Returns:
- the number of elements actually read from
reader(it might be less than the array length ifreaderends). - Throws:
java.io.IOException
-
loadBooleans
public static long loadBooleans(java.io.File file, boolean[][] array, long offset, long length) throws java.io.IOExceptionLoads elements from a file given by aFileobject, storing them in a given big-array fragment.- Parameters:
file- a file.array- a big array which will be filled with data from the specified file.offset- the index of the first element ofarrayto be filled.length- the number of elements ofarrayto be filled.- Returns:
- the number of elements actually read from the given file (it might be less than
lengthif the file is too short). - Throws:
java.io.IOException
-
loadBooleans
public static long loadBooleans(java.lang.CharSequence filename, boolean[][] array, long offset, long length) throws java.io.IOExceptionLoads elements from a file given by a filename, storing them in a given big-array fragment.- Parameters:
filename- a filename.array- a big array which will be filled with data from the specified file.offset- the index of the first element ofarrayto be filled.length- the number of elements ofarrayto be filled.- Returns:
- the number of elements actually read from the given file (it might be less than
lengthif the file is too short). - Throws:
java.io.IOException
-
loadBooleans
public static long loadBooleans(java.io.File file, boolean[][] array) throws java.io.IOExceptionLoads elements from a file given by aFileobject, storing them in a given array.- Parameters:
file- a file.array- a big array which will be filled with data from the specified file.- Returns:
- the number of elements actually read from the given file (it might be less than the array length if the file is too short).
- Throws:
java.io.IOException
-
loadBooleans
public static long loadBooleans(java.lang.CharSequence filename, boolean[][] array) throws java.io.IOExceptionLoads elements from a file given by a filename, storing them in a given array.- Parameters:
filename- a filename.array- a big array which will be filled with data from the specified file.- Returns:
- the number of elements actually read from the given file (it might be less than the array length if the file is too short).
- Throws:
java.io.IOException
-
storeBooleans
public static void storeBooleans(boolean[][] array, long offset, long length, java.io.PrintStream stream)Stores a big-array fragment to a given print stream.- Parameters:
array- a big array whose elements will be written tostream.offset- the index of the first element ofarrayto be written.length- the number of elements ofarrayto be written.stream- a print stream.
-
storeBooleans
public static void storeBooleans(boolean[][] array, java.io.PrintStream stream)Stores a big array to a given print stream.- Parameters:
array- a big array whose elements will be written tostream.stream- a print stream.
-
storeBooleans
public static void storeBooleans(boolean[][] array, long offset, long length, java.io.File file) throws java.io.IOExceptionStores a big-array fragment to a file given by aFileobject.- Parameters:
array- a big array whose elements will be written tofilename.offset- the index of the first element ofarrayto be written.length- the number of elements ofarrayto be written.file- a file.- Throws:
java.io.IOException
-
storeBooleans
public static void storeBooleans(boolean[][] array, long offset, long length, java.lang.CharSequence filename) throws java.io.IOExceptionStores a big-array fragment to a file given by a pathname.- Parameters:
array- a big array whose elements will be written tofilename.offset- the index of the first element ofarrayto be written.length- the number of elements ofarrayto be written.filename- a filename.- Throws:
java.io.IOException
-
storeBooleans
public static void storeBooleans(boolean[][] array, java.io.File file) throws java.io.IOExceptionStores a big array to a file given by aFileobject.- Parameters:
array- a big array whose elements will be written tofilename.file- a file.- Throws:
java.io.IOException
-
storeBooleans
public static void storeBooleans(boolean[][] array, java.lang.CharSequence filename) throws java.io.IOExceptionStores a big array to a file given by a pathname.- Parameters:
array- a big array whose elements will be written tofilename.filename- a filename.- Throws:
java.io.IOException
-
asBooleanIterator
Wraps the given buffered reader into an iterator.- Parameters:
reader- a buffered reader.
-
asBooleanIterator
Wraps a file given by aFileobject into an iterator.- Parameters:
file- a file.- Throws:
java.io.IOException
-
asBooleanIterator
public static BooleanIterator asBooleanIterator(java.lang.CharSequence filename) throws java.io.IOExceptionWraps a file given by a pathname into an iterator.- Parameters:
filename- a filename.- Throws:
java.io.IOException
-
asBooleanIterable
Wraps a file given by aFileobject into an iterable object.- Parameters:
file- a file.
-
asBooleanIterable
Wraps a file given by a pathname into an iterable object.- Parameters:
filename- a filename.
-
loadBytes
public static int loadBytes(java.io.BufferedReader reader, byte[] array, int offset, int length) throws java.io.IOExceptionLoads elements from a given fast buffered reader, storing them in a given array fragment.- Parameters:
reader- a buffered reader.array- an array which will be filled with data fromreader.offset- the index of the first element ofarrayto be filled.length- the number of elements ofarrayto be filled.- Returns:
- the number of elements actually read from
reader(it might be less thanlengthifreaderends). - Throws:
java.io.IOException
-
loadBytes
public static int loadBytes(java.io.BufferedReader reader, byte[] array) throws java.io.IOExceptionLoads elements from a given buffered reader, storing them in a given array.- Parameters:
reader- a buffered reader.array- an array which will be filled with data fromreader.- Returns:
- the number of elements actually read from
reader(it might be less than the array length ifreaderends). - Throws:
java.io.IOException
-
loadBytes
public static int loadBytes(java.io.File file, byte[] array, int offset, int length) throws java.io.IOExceptionLoads elements from a file given by aFileobject, storing them in a given array fragment.- Parameters:
file- a file.array- an array which will be filled with data from the specified file.offset- the index of the first element ofarrayto be filled.length- the number of elements ofarrayto be filled.- Returns:
- the number of elements actually read from the given file (it might be less than
lengthif the file is too short). - Throws:
java.io.IOException
-
loadBytes
public static int loadBytes(java.lang.CharSequence filename, byte[] array, int offset, int length) throws java.io.IOExceptionLoads elements from a file given by a filename, storing them in a given array fragment.- Parameters:
filename- a filename.array- an array which will be filled with data from the specified file.offset- the index of the first element ofarrayto be filled.length- the number of elements ofarrayto be filled.- Returns:
- the number of elements actually read from the given file (it might be less than
lengthif the file is too short). - Throws:
java.io.IOException
-
loadBytes
public static int loadBytes(java.io.File file, byte[] array) throws java.io.IOExceptionLoads elements from a file given by aFileobject, storing them in a given array.- Parameters:
file- a file.array- an array which will be filled with data from the specified file.- Returns:
- the number of elements actually read from the given file (it might be less than the array length if the file is too short).
- Throws:
java.io.IOException
-
loadBytes
public static int loadBytes(java.lang.CharSequence filename, byte[] array) throws java.io.IOExceptionLoads elements from a file given by a filename, storing them in a given array.- Parameters:
filename- a filename.array- an array which will be filled with data from the specified file.- Returns:
- the number of elements actually read from the given file (it might be less than the array length if the file is too short).
- Throws:
java.io.IOException
-
storeBytes
public static void storeBytes(byte[] array, int offset, int length, java.io.PrintStream stream)Stores an array fragment to a given print stream.- Parameters:
array- an array whose elements will be written tostream.offset- the index of the first element ofarrayto be written.length- the number of elements ofarrayto be written.stream- a print stream.
-
storeBytes
public static void storeBytes(byte[] array, java.io.PrintStream stream)Stores an array to a given print stream.- Parameters:
array- an array whose elements will be written tostream.stream- a print stream.
-
storeBytes
public static void storeBytes(byte[] array, int offset, int length, java.io.File file) throws java.io.IOExceptionStores an array fragment to a file given by aFileobject.- Parameters:
array- an array whose elements will be written tofilename.offset- the index of the first element ofarrayto be written.length- the number of elements ofarrayto be written.file- a file.- Throws:
java.io.IOException
-
storeBytes
public static void storeBytes(byte[] array, int offset, int length, java.lang.CharSequence filename) throws java.io.IOExceptionStores an array fragment to a file given by a pathname.- Parameters:
array- an array whose elements will be written tofilename.offset- the index of the first element ofarrayto be written.length- the number of elements ofarrayto be written.filename- a filename.- Throws:
java.io.IOException
-
storeBytes
public static void storeBytes(byte[] array, java.io.File file) throws java.io.IOExceptionStores an array to a file given by aFileobject.- Parameters:
array- an array whose elements will be written tofilename.file- a file.- Throws:
java.io.IOException
-
storeBytes
public static void storeBytes(byte[] array, java.lang.CharSequence filename) throws java.io.IOExceptionStores an array to a file given by a pathname.- Parameters:
array- an array whose elements will be written tofilename.filename- a filename.- Throws:
java.io.IOException
-
storeBytes
Stores the element returned by an iterator to a given print stream.- Parameters:
i- an iterator whose output will be written tostream.stream- a print stream.
-
storeBytes
Stores the element returned by an iterator to a file given by aFileobject.- Parameters:
i- an iterator whose output will be written tofilename.file- a file.- Throws:
java.io.IOException
-
storeBytes
public static void storeBytes(ByteIterator i, java.lang.CharSequence filename) throws java.io.IOExceptionStores the element returned by an iterator to a file given by a pathname.- Parameters:
i- an iterator whose output will be written tofilename.filename- a filename.- Throws:
java.io.IOException
-
loadBytes
public static long loadBytes(java.io.BufferedReader reader, byte[][] array, long offset, long length) throws java.io.IOExceptionLoads elements from a given fast buffered reader, storing them in a given big-array fragment.- Parameters:
reader- a buffered reader.array- a big array which will be filled with data fromreader.offset- the index of the first element ofarrayto be filled.length- the number of elements ofarrayto be filled.- Returns:
- the number of elements actually read from
reader(it might be less thanlengthifreaderends). - Throws:
java.io.IOException
-
loadBytes
public static long loadBytes(java.io.BufferedReader reader, byte[][] array) throws java.io.IOExceptionLoads elements from a given buffered reader, storing them in a given array.- Parameters:
reader- a buffered reader.array- a big array which will be filled with data fromreader.- Returns:
- the number of elements actually read from
reader(it might be less than the array length ifreaderends). - Throws:
java.io.IOException
-
loadBytes
public static long loadBytes(java.io.File file, byte[][] array, long offset, long length) throws java.io.IOExceptionLoads elements from a file given by aFileobject, storing them in a given big-array fragment.- Parameters:
file- a file.array- a big array which will be filled with data from the specified file.offset- the index of the first element ofarrayto be filled.length- the number of elements ofarrayto be filled.- Returns:
- the number of elements actually read from the given file (it might be less than
lengthif the file is too short). - Throws:
java.io.IOException
-
loadBytes
public static long loadBytes(java.lang.CharSequence filename, byte[][] array, long offset, long length) throws java.io.IOExceptionLoads elements from a file given by a filename, storing them in a given big-array fragment.- Parameters:
filename- a filename.array- a big array which will be filled with data from the specified file.offset- the index of the first element ofarrayto be filled.length- the number of elements ofarrayto be filled.- Returns:
- the number of elements actually read from the given file (it might be less than
lengthif the file is too short). - Throws:
java.io.IOException
-
loadBytes
public static long loadBytes(java.io.File file, byte[][] array) throws java.io.IOExceptionLoads elements from a file given by aFileobject, storing them in a given array.- Parameters:
file- a file.array- a big array which will be filled with data from the specified file.- Returns:
- the number of elements actually read from the given file (it might be less than the array length if the file is too short).
- Throws:
java.io.IOException
-
loadBytes
public static long loadBytes(java.lang.CharSequence filename, byte[][] array) throws java.io.IOExceptionLoads elements from a file given by a filename, storing them in a given array.- Parameters:
filename- a filename.array- a big array which will be filled with data from the specified file.- Returns:
- the number of elements actually read from the given file (it might be less than the array length if the file is too short).
- Throws:
java.io.IOException
-
storeBytes
public static void storeBytes(byte[][] array, long offset, long length, java.io.PrintStream stream)Stores a big-array fragment to a given print stream.- Parameters:
array- a big array whose elements will be written tostream.offset- the index of the first element ofarrayto be written.length- the number of elements ofarrayto be written.stream- a print stream.
-
storeBytes
public static void storeBytes(byte[][] array, java.io.PrintStream stream)Stores a big array to a given print stream.- Parameters:
array- a big array whose elements will be written tostream.stream- a print stream.
-
storeBytes
public static void storeBytes(byte[][] array, long offset, long length, java.io.File file) throws java.io.IOExceptionStores a big-array fragment to a file given by aFileobject.- Parameters:
array- a big array whose elements will be written tofilename.offset- the index of the first element ofarrayto be written.length- the number of elements ofarrayto be written.file- a file.- Throws:
java.io.IOException
-
storeBytes
public static void storeBytes(byte[][] array, long offset, long length, java.lang.CharSequence filename) throws java.io.IOExceptionStores a big-array fragment to a file given by a pathname.- Parameters:
array- a big array whose elements will be written tofilename.offset- the index of the first element ofarrayto be written.length- the number of elements ofarrayto be written.filename- a filename.- Throws:
java.io.IOException
-
storeBytes
public static void storeBytes(byte[][] array, java.io.File file) throws java.io.IOExceptionStores a big array to a file given by aFileobject.- Parameters:
array- a big array whose elements will be written tofilename.file- a file.- Throws:
java.io.IOException
-
storeBytes
public static void storeBytes(byte[][] array, java.lang.CharSequence filename) throws java.io.IOExceptionStores a big array to a file given by a pathname.- Parameters:
array- a big array whose elements will be written tofilename.filename- a filename.- Throws:
java.io.IOException
-
asByteIterator
Wraps the given buffered reader into an iterator.- Parameters:
reader- a buffered reader.
-
asByteIterator
Wraps a file given by aFileobject into an iterator.- Parameters:
file- a file.- Throws:
java.io.IOException
-
asByteIterator
public static ByteIterator asByteIterator(java.lang.CharSequence filename) throws java.io.IOExceptionWraps a file given by a pathname into an iterator.- Parameters:
filename- a filename.- Throws:
java.io.IOException
-
asByteIterable
Wraps a file given by aFileobject into an iterable object.- Parameters:
file- a file.
-
asByteIterable
Wraps a file given by a pathname into an iterable object.- Parameters:
filename- a filename.
-
loadShorts
public static int loadShorts(java.io.BufferedReader reader, short[] array, int offset, int length) throws java.io.IOExceptionLoads elements from a given fast buffered reader, storing them in a given array fragment.- Parameters:
reader- a buffered reader.array- an array which will be filled with data fromreader.offset- the index of the first element ofarrayto be filled.length- the number of elements ofarrayto be filled.- Returns:
- the number of elements actually read from
reader(it might be less thanlengthifreaderends). - Throws:
java.io.IOException
-
loadShorts
public static int loadShorts(java.io.BufferedReader reader, short[] array) throws java.io.IOExceptionLoads elements from a given buffered reader, storing them in a given array.- Parameters:
reader- a buffered reader.array- an array which will be filled with data fromreader.- Returns:
- the number of elements actually read from
reader(it might be less than the array length ifreaderends). - Throws:
java.io.IOException
-
loadShorts
public static int loadShorts(java.io.File file, short[] array, int offset, int length) throws java.io.IOExceptionLoads elements from a file given by aFileobject, storing them in a given array fragment.- Parameters:
file- a file.array- an array which will be filled with data from the specified file.offset- the index of the first element ofarrayto be filled.length- the number of elements ofarrayto be filled.- Returns:
- the number of elements actually read from the given file (it might be less than
lengthif the file is too short). - Throws:
java.io.IOException
-
loadShorts
public static int loadShorts(java.lang.CharSequence filename, short[] array, int offset, int length) throws java.io.IOExceptionLoads elements from a file given by a filename, storing them in a given array fragment.- Parameters:
filename- a filename.array- an array which will be filled with data from the specified file.offset- the index of the first element ofarrayto be filled.length- the number of elements ofarrayto be filled.- Returns:
- the number of elements actually read from the given file (it might be less than
lengthif the file is too short). - Throws:
java.io.IOException
-
loadShorts
public static int loadShorts(java.io.File file, short[] array) throws java.io.IOExceptionLoads elements from a file given by aFileobject, storing them in a given array.- Parameters:
file- a file.array- an array which will be filled with data from the specified file.- Returns:
- the number of elements actually read from the given file (it might be less than the array length if the file is too short).
- Throws:
java.io.IOException
-
loadShorts
public static int loadShorts(java.lang.CharSequence filename, short[] array) throws java.io.IOExceptionLoads elements from a file given by a filename, storing them in a given array.- Parameters:
filename- a filename.array- an array which will be filled with data from the specified file.- Returns:
- the number of elements actually read from the given file (it might be less than the array length if the file is too short).
- Throws:
java.io.IOException
-
storeShorts
public static void storeShorts(short[] array, int offset, int length, java.io.PrintStream stream)Stores an array fragment to a given print stream.- Parameters:
array- an array whose elements will be written tostream.offset- the index of the first element ofarrayto be written.length- the number of elements ofarrayto be written.stream- a print stream.
-
storeShorts
public static void storeShorts(short[] array, java.io.PrintStream stream)Stores an array to a given print stream.- Parameters:
array- an array whose elements will be written tostream.stream- a print stream.
-
storeShorts
public static void storeShorts(short[] array, int offset, int length, java.io.File file) throws java.io.IOExceptionStores an array fragment to a file given by aFileobject.- Parameters:
array- an array whose elements will be written tofilename.offset- the index of the first element ofarrayto be written.length- the number of elements ofarrayto be written.file- a file.- Throws:
java.io.IOException
-
storeShorts
public static void storeShorts(short[] array, int offset, int length, java.lang.CharSequence filename) throws java.io.IOExceptionStores an array fragment to a file given by a pathname.- Parameters:
array- an array whose elements will be written tofilename.offset- the index of the first element ofarrayto be written.length- the number of elements ofarrayto be written.filename- a filename.- Throws:
java.io.IOException
-
storeShorts
public static void storeShorts(short[] array, java.io.File file) throws java.io.IOExceptionStores an array to a file given by aFileobject.- Parameters:
array- an array whose elements will be written tofilename.file- a file.- Throws:
java.io.IOException
-
storeShorts
public static void storeShorts(short[] array, java.lang.CharSequence filename) throws java.io.IOExceptionStores an array to a file given by a pathname.- Parameters:
array- an array whose elements will be written tofilename.filename- a filename.- Throws:
java.io.IOException
-
storeShorts
Stores the element returned by an iterator to a given print stream.- Parameters:
i- an iterator whose output will be written tostream.stream- a print stream.
-
storeShorts
Stores the element returned by an iterator to a file given by aFileobject.- Parameters:
i- an iterator whose output will be written tofilename.file- a file.- Throws:
java.io.IOException
-
storeShorts
public static void storeShorts(ShortIterator i, java.lang.CharSequence filename) throws java.io.IOExceptionStores the element returned by an iterator to a file given by a pathname.- Parameters:
i- an iterator whose output will be written tofilename.filename- a filename.- Throws:
java.io.IOException
-
loadShorts
public static long loadShorts(java.io.BufferedReader reader, short[][] array, long offset, long length) throws java.io.IOExceptionLoads elements from a given fast buffered reader, storing them in a given big-array fragment.- Parameters:
reader- a buffered reader.array- a big array which will be filled with data fromreader.offset- the index of the first element ofarrayto be filled.length- the number of elements ofarrayto be filled.- Returns:
- the number of elements actually read from
reader(it might be less thanlengthifreaderends). - Throws:
java.io.IOException
-
loadShorts
public static long loadShorts(java.io.BufferedReader reader, short[][] array) throws java.io.IOExceptionLoads elements from a given buffered reader, storing them in a given array.- Parameters:
reader- a buffered reader.array- a big array which will be filled with data fromreader.- Returns:
- the number of elements actually read from
reader(it might be less than the array length ifreaderends). - Throws:
java.io.IOException
-
loadShorts
public static long loadShorts(java.io.File file, short[][] array, long offset, long length) throws java.io.IOExceptionLoads elements from a file given by aFileobject, storing them in a given big-array fragment.- Parameters:
file- a file.array- a big array which will be filled with data from the specified file.offset- the index of the first element ofarrayto be filled.length- the number of elements ofarrayto be filled.- Returns:
- the number of elements actually read from the given file (it might be less than
lengthif the file is too short). - Throws:
java.io.IOException
-
loadShorts
public static long loadShorts(java.lang.CharSequence filename, short[][] array, long offset, long length) throws java.io.IOExceptionLoads elements from a file given by a filename, storing them in a given big-array fragment.- Parameters:
filename- a filename.array- a big array which will be filled with data from the specified file.offset- the index of the first element ofarrayto be filled.length- the number of elements ofarrayto be filled.- Returns:
- the number of elements actually read from the given file (it might be less than
lengthif the file is too short). - Throws:
java.io.IOException
-
loadShorts
public static long loadShorts(java.io.File file, short[][] array) throws java.io.IOExceptionLoads elements from a file given by aFileobject, storing them in a given array.- Parameters:
file- a file.array- a big array which will be filled with data from the specified file.- Returns:
- the number of elements actually read from the given file (it might be less than the array length if the file is too short).
- Throws:
java.io.IOException
-
loadShorts
public static long loadShorts(java.lang.CharSequence filename, short[][] array) throws java.io.IOExceptionLoads elements from a file given by a filename, storing them in a given array.- Parameters:
filename- a filename.array- a big array which will be filled with data from the specified file.- Returns:
- the number of elements actually read from the given file (it might be less than the array length if the file is too short).
- Throws:
java.io.IOException
-
storeShorts
public static void storeShorts(short[][] array, long offset, long length, java.io.PrintStream stream)Stores a big-array fragment to a given print stream.- Parameters:
array- a big array whose elements will be written tostream.offset- the index of the first element ofarrayto be written.length- the number of elements ofarrayto be written.stream- a print stream.
-
storeShorts
public static void storeShorts(short[][] array, java.io.PrintStream stream)Stores a big array to a given print stream.- Parameters:
array- a big array whose elements will be written tostream.stream- a print stream.
-
storeShorts
public static void storeShorts(short[][] array, long offset, long length, java.io.File file) throws java.io.IOExceptionStores a big-array fragment to a file given by aFileobject.- Parameters:
array- a big array whose elements will be written tofilename.offset- the index of the first element ofarrayto be written.length- the number of elements ofarrayto be written.file- a file.- Throws:
java.io.IOException
-
storeShorts
public static void storeShorts(short[][] array, long offset, long length, java.lang.CharSequence filename) throws java.io.IOExceptionStores a big-array fragment to a file given by a pathname.- Parameters:
array- a big array whose elements will be written tofilename.offset- the index of the first element ofarrayto be written.length- the number of elements ofarrayto be written.filename- a filename.- Throws:
java.io.IOException
-
storeShorts
public static void storeShorts(short[][] array, java.io.File file) throws java.io.IOExceptionStores a big array to a file given by aFileobject.- Parameters:
array- a big array whose elements will be written tofilename.file- a file.- Throws:
java.io.IOException
-
storeShorts
public static void storeShorts(short[][] array, java.lang.CharSequence filename) throws java.io.IOExceptionStores a big array to a file given by a pathname.- Parameters:
array- a big array whose elements will be written tofilename.filename- a filename.- Throws:
java.io.IOException
-
asShortIterator
Wraps the given buffered reader into an iterator.- Parameters:
reader- a buffered reader.
-
asShortIterator
Wraps a file given by aFileobject into an iterator.- Parameters:
file- a file.- Throws:
java.io.IOException
-
asShortIterator
public static ShortIterator asShortIterator(java.lang.CharSequence filename) throws java.io.IOExceptionWraps a file given by a pathname into an iterator.- Parameters:
filename- a filename.- Throws:
java.io.IOException
-
asShortIterable
Wraps a file given by aFileobject into an iterable object.- Parameters:
file- a file.
-
asShortIterable
Wraps a file given by a pathname into an iterable object.- Parameters:
filename- a filename.
-
loadFloats
public static int loadFloats(java.io.BufferedReader reader, float[] array, int offset, int length) throws java.io.IOExceptionLoads elements from a given fast buffered reader, storing them in a given array fragment.- Parameters:
reader- a buffered reader.array- an array which will be filled with data fromreader.offset- the index of the first element ofarrayto be filled.length- the number of elements ofarrayto be filled.- Returns:
- the number of elements actually read from
reader(it might be less thanlengthifreaderends). - Throws:
java.io.IOException
-
loadFloats
public static int loadFloats(java.io.BufferedReader reader, float[] array) throws java.io.IOExceptionLoads elements from a given buffered reader, storing them in a given array.- Parameters:
reader- a buffered reader.array- an array which will be filled with data fromreader.- Returns:
- the number of elements actually read from
reader(it might be less than the array length ifreaderends). - Throws:
java.io.IOException
-
loadFloats
public static int loadFloats(java.io.File file, float[] array, int offset, int length) throws java.io.IOExceptionLoads elements from a file given by aFileobject, storing them in a given array fragment.- Parameters:
file- a file.array- an array which will be filled with data from the specified file.offset- the index of the first element ofarrayto be filled.length- the number of elements ofarrayto be filled.- Returns:
- the number of elements actually read from the given file (it might be less than
lengthif the file is too short). - Throws:
java.io.IOException
-
loadFloats
public static int loadFloats(java.lang.CharSequence filename, float[] array, int offset, int length) throws java.io.IOExceptionLoads elements from a file given by a filename, storing them in a given array fragment.- Parameters:
filename- a filename.array- an array which will be filled with data from the specified file.offset- the index of the first element ofarrayto be filled.length- the number of elements ofarrayto be filled.- Returns:
- the number of elements actually read from the given file (it might be less than
lengthif the file is too short). - Throws:
java.io.IOException
-
loadFloats
public static int loadFloats(java.io.File file, float[] array) throws java.io.IOExceptionLoads elements from a file given by aFileobject, storing them in a given array.- Parameters:
file- a file.array- an array which will be filled with data from the specified file.- Returns:
- the number of elements actually read from the given file (it might be less than the array length if the file is too short).
- Throws:
java.io.IOException
-
loadFloats
public static int loadFloats(java.lang.CharSequence filename, float[] array) throws java.io.IOExceptionLoads elements from a file given by a filename, storing them in a given array.- Parameters:
filename- a filename.array- an array which will be filled with data from the specified file.- Returns:
- the number of elements actually read from the given file (it might be less than the array length if the file is too short).
- Throws:
java.io.IOException
-
storeFloats
public static void storeFloats(float[] array, int offset, int length, java.io.PrintStream stream)Stores an array fragment to a given print stream.- Parameters:
array- an array whose elements will be written tostream.offset- the index of the first element ofarrayto be written.length- the number of elements ofarrayto be written.stream- a print stream.
-
storeFloats
public static void storeFloats(float[] array, java.io.PrintStream stream)Stores an array to a given print stream.- Parameters:
array- an array whose elements will be written tostream.stream- a print stream.
-
storeFloats
public static void storeFloats(float[] array, int offset, int length, java.io.File file) throws java.io.IOExceptionStores an array fragment to a file given by aFileobject.- Parameters:
array- an array whose elements will be written tofilename.offset- the index of the first element ofarrayto be written.length- the number of elements ofarrayto be written.file- a file.- Throws:
java.io.IOException
-
storeFloats
public static void storeFloats(float[] array, int offset, int length, java.lang.CharSequence filename) throws java.io.IOExceptionStores an array fragment to a file given by a pathname.- Parameters:
array- an array whose elements will be written tofilename.offset- the index of the first element ofarrayto be written.length- the number of elements ofarrayto be written.filename- a filename.- Throws:
java.io.IOException
-
storeFloats
public static void storeFloats(float[] array, java.io.File file) throws java.io.IOExceptionStores an array to a file given by aFileobject.- Parameters:
array- an array whose elements will be written tofilename.file- a file.- Throws:
java.io.IOException
-
storeFloats
public static void storeFloats(float[] array, java.lang.CharSequence filename) throws java.io.IOExceptionStores an array to a file given by a pathname.- Parameters:
array- an array whose elements will be written tofilename.filename- a filename.- Throws:
java.io.IOException
-
storeFloats
Stores the element returned by an iterator to a given print stream.- Parameters:
i- an iterator whose output will be written tostream.stream- a print stream.
-
storeFloats
Stores the element returned by an iterator to a file given by aFileobject.- Parameters:
i- an iterator whose output will be written tofilename.file- a file.- Throws:
java.io.IOException
-
storeFloats
public static void storeFloats(FloatIterator i, java.lang.CharSequence filename) throws java.io.IOExceptionStores the element returned by an iterator to a file given by a pathname.- Parameters:
i- an iterator whose output will be written tofilename.filename- a filename.- Throws:
java.io.IOException
-
loadFloats
public static long loadFloats(java.io.BufferedReader reader, float[][] array, long offset, long length) throws java.io.IOExceptionLoads elements from a given fast buffered reader, storing them in a given big-array fragment.- Parameters:
reader- a buffered reader.array- a big array which will be filled with data fromreader.offset- the index of the first element ofarrayto be filled.length- the number of elements ofarrayto be filled.- Returns:
- the number of elements actually read from
reader(it might be less thanlengthifreaderends). - Throws:
java.io.IOException
-
loadFloats
public static long loadFloats(java.io.BufferedReader reader, float[][] array) throws java.io.IOExceptionLoads elements from a given buffered reader, storing them in a given array.- Parameters:
reader- a buffered reader.array- a big array which will be filled with data fromreader.- Returns:
- the number of elements actually read from
reader(it might be less than the array length ifreaderends). - Throws:
java.io.IOException
-
loadFloats
public static long loadFloats(java.io.File file, float[][] array, long offset, long length) throws java.io.IOExceptionLoads elements from a file given by aFileobject, storing them in a given big-array fragment.- Parameters:
file- a file.array- a big array which will be filled with data from the specified file.offset- the index of the first element ofarrayto be filled.length- the number of elements ofarrayto be filled.- Returns:
- the number of elements actually read from the given file (it might be less than
lengthif the file is too short). - Throws:
java.io.IOException
-
loadFloats
public static long loadFloats(java.lang.CharSequence filename, float[][] array, long offset, long length) throws java.io.IOExceptionLoads elements from a file given by a filename, storing them in a given big-array fragment.- Parameters:
filename- a filename.array- a big array which will be filled with data from the specified file.offset- the index of the first element ofarrayto be filled.length- the number of elements ofarrayto be filled.- Returns:
- the number of elements actually read from the given file (it might be less than
lengthif the file is too short). - Throws:
java.io.IOException
-
loadFloats
public static long loadFloats(java.io.File file, float[][] array) throws java.io.IOExceptionLoads elements from a file given by aFileobject, storing them in a given array.- Parameters:
file- a file.array- a big array which will be filled with data from the specified file.- Returns:
- the number of elements actually read from the given file (it might be less than the array length if the file is too short).
- Throws:
java.io.IOException
-
loadFloats
public static long loadFloats(java.lang.CharSequence filename, float[][] array) throws java.io.IOExceptionLoads elements from a file given by a filename, storing them in a given array.- Parameters:
filename- a filename.array- a big array which will be filled with data from the specified file.- Returns:
- the number of elements actually read from the given file (it might be less than the array length if the file is too short).
- Throws:
java.io.IOException
-
storeFloats
public static void storeFloats(float[][] array, long offset, long length, java.io.PrintStream stream)Stores a big-array fragment to a given print stream.- Parameters:
array- a big array whose elements will be written tostream.offset- the index of the first element ofarrayto be written.length- the number of elements ofarrayto be written.stream- a print stream.
-
storeFloats
public static void storeFloats(float[][] array, java.io.PrintStream stream)Stores a big array to a given print stream.- Parameters:
array- a big array whose elements will be written tostream.stream- a print stream.
-
storeFloats
public static void storeFloats(float[][] array, long offset, long length, java.io.File file) throws java.io.IOExceptionStores a big-array fragment to a file given by aFileobject.- Parameters:
array- a big array whose elements will be written tofilename.offset- the index of the first element ofarrayto be written.length- the number of elements ofarrayto be written.file- a file.- Throws:
java.io.IOException
-
storeFloats
public static void storeFloats(float[][] array, long offset, long length, java.lang.CharSequence filename) throws java.io.IOExceptionStores a big-array fragment to a file given by a pathname.- Parameters:
array- a big array whose elements will be written tofilename.offset- the index of the first element ofarrayto be written.length- the number of elements ofarrayto be written.filename- a filename.- Throws:
java.io.IOException
-
storeFloats
public static void storeFloats(float[][] array, java.io.File file) throws java.io.IOExceptionStores a big array to a file given by aFileobject.- Parameters:
array- a big array whose elements will be written tofilename.file- a file.- Throws:
java.io.IOException
-
storeFloats
public static void storeFloats(float[][] array, java.lang.CharSequence filename) throws java.io.IOExceptionStores a big array to a file given by a pathname.- Parameters:
array- a big array whose elements will be written tofilename.filename- a filename.- Throws:
java.io.IOException
-
asFloatIterator
Wraps the given buffered reader into an iterator.- Parameters:
reader- a buffered reader.
-
asFloatIterator
Wraps a file given by aFileobject into an iterator.- Parameters:
file- a file.- Throws:
java.io.IOException
-
asFloatIterator
public static FloatIterator asFloatIterator(java.lang.CharSequence filename) throws java.io.IOExceptionWraps a file given by a pathname into an iterator.- Parameters:
filename- a filename.- Throws:
java.io.IOException
-
asFloatIterable
Wraps a file given by aFileobject into an iterable object.- Parameters:
file- a file.
-
asFloatIterable
Wraps a file given by a pathname into an iterable object.- Parameters:
filename- a filename.
-