Class TextIO
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
FieldsModifier and TypeFieldDescriptionstatic final intThe size of the buffer used for all I/O on files. -
Method Summary
Modifier and TypeMethodDescriptionstatic BooleanIterableasBooleanIterable(File file) Wraps a file given by aFileobject into an iterable object.static BooleanIterableasBooleanIterable(CharSequence filename) Wraps a file given by a pathname into an iterable object.static BooleanIteratorasBooleanIterator(BufferedReader reader) Wraps the given buffered reader into an iterator.static BooleanIteratorasBooleanIterator(File file) Wraps a file given by aFileobject into an iterator.static BooleanIteratorasBooleanIterator(CharSequence filename) Wraps a file given by a pathname into an iterator.static ByteIterableasByteIterable(File file) Wraps a file given by aFileobject into an iterable object.static ByteIterableasByteIterable(CharSequence filename) Wraps a file given by a pathname into an iterable object.static ByteIteratorasByteIterator(BufferedReader reader) Wraps the given buffered reader into an iterator.static ByteIteratorasByteIterator(File file) Wraps a file given by aFileobject into an iterator.static ByteIteratorasByteIterator(CharSequence filename) Wraps a file given by a pathname into an iterator.static DoubleIterableasDoubleIterable(File file) Wraps a file given by aFileobject into an iterable object.static DoubleIterableasDoubleIterable(CharSequence filename) Wraps a file given by a pathname into an iterable object.static DoubleIteratorasDoubleIterator(BufferedReader reader) Wraps the given buffered reader into an iterator.static DoubleIteratorasDoubleIterator(File file) Wraps a file given by aFileobject into an iterator.static DoubleIteratorasDoubleIterator(CharSequence filename) Wraps a file given by a pathname into an iterator.static FloatIterableasFloatIterable(File file) Wraps a file given by aFileobject into an iterable object.static FloatIterableasFloatIterable(CharSequence filename) Wraps a file given by a pathname into an iterable object.static FloatIteratorasFloatIterator(BufferedReader reader) Wraps the given buffered reader into an iterator.static FloatIteratorasFloatIterator(File file) Wraps a file given by aFileobject into an iterator.static FloatIteratorasFloatIterator(CharSequence filename) Wraps a file given by a pathname into an iterator.static IntIterableasIntIterable(File file) Wraps a file given by aFileobject into an iterable object.static IntIterableasIntIterable(CharSequence filename) Wraps a file given by a pathname into an iterable object.static IntIteratorasIntIterator(BufferedReader reader) Wraps the given buffered reader into an iterator.static IntIteratorasIntIterator(File file) Wraps a file given by aFileobject into an iterator.static IntIteratorasIntIterator(CharSequence filename) Wraps a file given by a pathname into an iterator.static LongIterableasLongIterable(File file) Wraps a file given by aFileobject into an iterable object.static LongIterableasLongIterable(CharSequence filename) Wraps a file given by a pathname into an iterable object.static LongIteratorasLongIterator(BufferedReader reader) Wraps the given buffered reader into an iterator.static LongIteratorasLongIterator(File file) Wraps a file given by aFileobject into an iterator.static LongIteratorasLongIterator(CharSequence filename) Wraps a file given by a pathname into an iterator.static ShortIterableasShortIterable(File file) Wraps a file given by aFileobject into an iterable object.static ShortIterableasShortIterable(CharSequence filename) Wraps a file given by a pathname into an iterable object.static ShortIteratorasShortIterator(BufferedReader reader) Wraps the given buffered reader into an iterator.static ShortIteratorasShortIterator(File file) Wraps a file given by aFileobject into an iterator.static ShortIteratorasShortIterator(CharSequence filename) Wraps a file given by a pathname into an iterator.static intloadBooleans(BufferedReader reader, boolean[] array) Loads elements from a given buffered reader, storing them in a given array.static longloadBooleans(BufferedReader reader, boolean[][] array) Loads elements from a given buffered reader, storing them in a given array.static longloadBooleans(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(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(File file, boolean[] array) Loads elements from a file given by aFileobject, storing them in a given array.static longloadBooleans(File file, boolean[][] array) Loads elements from a file given by aFileobject, storing them in a given array.static longloadBooleans(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(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(CharSequence filename, boolean[] array) Loads elements from a file given by a filename, storing them in a given array.static longloadBooleans(CharSequence filename, boolean[][] array) Loads elements from a file given by a filename, storing them in a given array.static longloadBooleans(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(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(BufferedReader reader, byte[] array) Loads elements from a given buffered reader, storing them in a given array.static longloadBytes(BufferedReader reader, byte[][] array) Loads elements from a given buffered reader, storing them in a given array.static longloadBytes(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(BufferedReader reader, byte[] array, int offset, int length) Loads elements from a given fast buffered reader, storing them in a given array fragment.static intLoads elements from a file given by aFileobject, storing them in a given array.static longLoads elements from a file given by aFileobject, storing them in a given array.static longLoads elements from a file given by aFileobject, storing them in a given big-array fragment.static intLoads elements from a file given by aFileobject, storing them in a given array fragment.static intloadBytes(CharSequence filename, byte[] array) Loads elements from a file given by a filename, storing them in a given array.static longloadBytes(CharSequence filename, byte[][] array) Loads elements from a file given by a filename, storing them in a given array.static longloadBytes(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(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(BufferedReader reader, double[] array) Loads elements from a given buffered reader, storing them in a given array.static longloadDoubles(BufferedReader reader, double[][] array) Loads elements from a given buffered reader, storing them in a given array.static longloadDoubles(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(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(File file, double[] array) Loads elements from a file given by aFileobject, storing them in a given array.static longloadDoubles(File file, double[][] array) Loads elements from a file given by aFileobject, storing them in a given array.static longloadDoubles(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(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(CharSequence filename, double[] array) Loads elements from a file given by a filename, storing them in a given array.static longloadDoubles(CharSequence filename, double[][] array) Loads elements from a file given by a filename, storing them in a given array.static longloadDoubles(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(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(BufferedReader reader, float[] array) Loads elements from a given buffered reader, storing them in a given array.static longloadFloats(BufferedReader reader, float[][] array) Loads elements from a given buffered reader, storing them in a given array.static longloadFloats(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(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(File file, float[] array) Loads elements from a file given by aFileobject, storing them in a given array.static longloadFloats(File file, float[][] array) Loads elements from a file given by aFileobject, storing them in a given array.static longloadFloats(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(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(CharSequence filename, float[] array) Loads elements from a file given by a filename, storing them in a given array.static longloadFloats(CharSequence filename, float[][] array) Loads elements from a file given by a filename, storing them in a given array.static longloadFloats(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(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(BufferedReader reader, int[] array) Loads elements from a given buffered reader, storing them in a given array.static longloadInts(BufferedReader reader, int[][] array) Loads elements from a given buffered reader, storing them in a given array.static longloadInts(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(BufferedReader reader, int[] array, int offset, int length) Loads elements from a given fast buffered reader, storing them in a given array fragment.static intLoads elements from a file given by aFileobject, storing them in a given array.static longLoads elements from a file given by aFileobject, storing them in a given array.static longLoads elements from a file given by aFileobject, storing them in a given big-array fragment.static intLoads elements from a file given by aFileobject, storing them in a given array fragment.static intloadInts(CharSequence filename, int[] array) Loads elements from a file given by a filename, storing them in a given array.static longloadInts(CharSequence filename, int[][] array) Loads elements from a file given by a filename, storing them in a given array.static longloadInts(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(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(BufferedReader reader, long[] array) Loads elements from a given buffered reader, storing them in a given array.static longloadLongs(BufferedReader reader, long[][] array) Loads elements from a given buffered reader, storing them in a given array.static longloadLongs(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(BufferedReader reader, long[] array, int offset, int length) Loads elements from a given fast buffered reader, storing them in a given array fragment.static intLoads elements from a file given by aFileobject, storing them in a given array.static longLoads elements from a file given by aFileobject, storing them in a given array.static longLoads elements from a file given by aFileobject, storing them in a given big-array fragment.static intLoads elements from a file given by aFileobject, storing them in a given array fragment.static intloadLongs(CharSequence filename, long[] array) Loads elements from a file given by a filename, storing them in a given array.static longloadLongs(CharSequence filename, long[][] array) Loads elements from a file given by a filename, storing them in a given array.static longloadLongs(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(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(BufferedReader reader, short[] array) Loads elements from a given buffered reader, storing them in a given array.static longloadShorts(BufferedReader reader, short[][] array) Loads elements from a given buffered reader, storing them in a given array.static longloadShorts(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(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(File file, short[] array) Loads elements from a file given by aFileobject, storing them in a given array.static longloadShorts(File file, short[][] array) Loads elements from a file given by aFileobject, storing them in a given array.static longloadShorts(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(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(CharSequence filename, short[] array) Loads elements from a file given by a filename, storing them in a given array.static longloadShorts(CharSequence filename, short[][] array) Loads elements from a file given by a filename, storing them in a given array.static longloadShorts(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(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, File file) Stores a big-array fragment to a file given by aFileobject.static voidstoreBooleans(boolean[][] array, long offset, long length, PrintStream stream) Stores a big-array fragment to a given print stream.static voidstoreBooleans(boolean[][] array, long offset, long length, CharSequence filename) Stores a big-array fragment to a file given by a pathname.static voidstoreBooleans(boolean[][] array, File file) Stores a big array to a file given by aFileobject.static voidstoreBooleans(boolean[][] array, PrintStream stream) Stores a big array to a given print stream.static voidstoreBooleans(boolean[][] array, CharSequence filename) Stores a big array to a file given by a pathname.static voidstoreBooleans(boolean[] array, int offset, int length, File file) Stores an array fragment to a file given by aFileobject.static voidstoreBooleans(boolean[] array, int offset, int length, PrintStream stream) Stores an array fragment to a given print stream.static voidstoreBooleans(boolean[] array, int offset, int length, CharSequence filename) Stores an array fragment to a file given by a pathname.static voidstoreBooleans(boolean[] array, File file) Stores an array to a file given by aFileobject.static voidstoreBooleans(boolean[] array, PrintStream stream) Stores an array to a given print stream.static voidstoreBooleans(boolean[] array, CharSequence filename) Stores an array to a file given by a pathname.static voidstoreBooleans(BooleanIterator i, File file) Stores the element returned by an iterator to a file given by aFileobject.static voidstoreBooleans(BooleanIterator i, PrintStream stream) Stores the element returned by an iterator to a given print stream.static voidstoreBooleans(BooleanIterator i, CharSequence filename) Stores the element returned by an iterator to a file given by a pathname.static voidstoreBytes(byte[][] array, long offset, long length, File file) Stores a big-array fragment to a file given by aFileobject.static voidstoreBytes(byte[][] array, long offset, long length, PrintStream stream) Stores a big-array fragment to a given print stream.static voidstoreBytes(byte[][] array, long offset, long length, CharSequence filename) Stores a big-array fragment to a file given by a pathname.static voidstoreBytes(byte[][] array, File file) Stores a big array to a file given by aFileobject.static voidstoreBytes(byte[][] array, PrintStream stream) Stores a big array to a given print stream.static voidstoreBytes(byte[][] array, CharSequence filename) Stores a big array to a file given by a pathname.static voidstoreBytes(byte[] array, int offset, int length, File file) Stores an array fragment to a file given by aFileobject.static voidstoreBytes(byte[] array, int offset, int length, PrintStream stream) Stores an array fragment to a given print stream.static voidstoreBytes(byte[] array, int offset, int length, CharSequence filename) Stores an array fragment to a file given by a pathname.static voidstoreBytes(byte[] array, File file) Stores an array to a file given by aFileobject.static voidstoreBytes(byte[] array, PrintStream stream) Stores an array to a given print stream.static voidstoreBytes(byte[] array, CharSequence filename) Stores an array to a file given by a pathname.static voidstoreBytes(ByteIterator i, File file) Stores the element returned by an iterator to a file given by aFileobject.static voidstoreBytes(ByteIterator i, PrintStream stream) Stores the element returned by an iterator to a given print stream.static voidstoreBytes(ByteIterator i, CharSequence filename) Stores the element returned by an iterator to a file given by a pathname.static voidstoreDoubles(double[][] array, long offset, long length, File file) Stores a big-array fragment to a file given by aFileobject.static voidstoreDoubles(double[][] array, long offset, long length, PrintStream stream) Stores a big-array fragment to a given print stream.static voidstoreDoubles(double[][] array, long offset, long length, CharSequence filename) Stores a big-array fragment to a file given by a pathname.static voidstoreDoubles(double[][] array, File file) Stores a big array to a file given by aFileobject.static voidstoreDoubles(double[][] array, PrintStream stream) Stores a big array to a given print stream.static voidstoreDoubles(double[][] array, CharSequence filename) Stores a big array to a file given by a pathname.static voidstoreDoubles(double[] array, int offset, int length, File file) Stores an array fragment to a file given by aFileobject.static voidstoreDoubles(double[] array, int offset, int length, PrintStream stream) Stores an array fragment to a given print stream.static voidstoreDoubles(double[] array, int offset, int length, CharSequence filename) Stores an array fragment to a file given by a pathname.static voidstoreDoubles(double[] array, File file) Stores an array to a file given by aFileobject.static voidstoreDoubles(double[] array, PrintStream stream) Stores an array to a given print stream.static voidstoreDoubles(double[] array, CharSequence filename) Stores an array to a file given by a pathname.static voidstoreDoubles(DoubleIterator i, File file) Stores the element returned by an iterator to a file given by aFileobject.static voidstoreDoubles(DoubleIterator i, PrintStream stream) Stores the element returned by an iterator to a given print stream.static voidstoreDoubles(DoubleIterator i, CharSequence filename) Stores the element returned by an iterator to a file given by a pathname.static voidstoreFloats(float[][] array, long offset, long length, File file) Stores a big-array fragment to a file given by aFileobject.static voidstoreFloats(float[][] array, long offset, long length, PrintStream stream) Stores a big-array fragment to a given print stream.static voidstoreFloats(float[][] array, long offset, long length, CharSequence filename) Stores a big-array fragment to a file given by a pathname.static voidstoreFloats(float[][] array, File file) Stores a big array to a file given by aFileobject.static voidstoreFloats(float[][] array, PrintStream stream) Stores a big array to a given print stream.static voidstoreFloats(float[][] array, CharSequence filename) Stores a big array to a file given by a pathname.static voidstoreFloats(float[] array, int offset, int length, File file) Stores an array fragment to a file given by aFileobject.static voidstoreFloats(float[] array, int offset, int length, PrintStream stream) Stores an array fragment to a given print stream.static voidstoreFloats(float[] array, int offset, int length, CharSequence filename) Stores an array fragment to a file given by a pathname.static voidstoreFloats(float[] array, File file) Stores an array to a file given by aFileobject.static voidstoreFloats(float[] array, PrintStream stream) Stores an array to a given print stream.static voidstoreFloats(float[] array, CharSequence filename) Stores an array to a file given by a pathname.static voidstoreFloats(FloatIterator i, File file) Stores the element returned by an iterator to a file given by aFileobject.static voidstoreFloats(FloatIterator i, PrintStream stream) Stores the element returned by an iterator to a given print stream.static voidstoreFloats(FloatIterator i, CharSequence filename) Stores the element returned by an iterator to a file given by a pathname.static voidStores a big-array fragment to a file given by aFileobject.static voidstoreInts(int[][] array, long offset, long length, PrintStream stream) Stores a big-array fragment to a given print stream.static voidstoreInts(int[][] array, long offset, long length, CharSequence filename) Stores a big-array fragment to a file given by a pathname.static voidStores a big array to a file given by aFileobject.static voidstoreInts(int[][] array, PrintStream stream) Stores a big array to a given print stream.static voidstoreInts(int[][] array, CharSequence filename) Stores a big array to a file given by a pathname.static voidStores an array fragment to a file given by aFileobject.static voidstoreInts(int[] array, int offset, int length, PrintStream stream) Stores an array fragment to a given print stream.static voidstoreInts(int[] array, int offset, int length, CharSequence filename) Stores an array fragment to a file given by a pathname.static voidStores an array to a file given by aFileobject.static voidstoreInts(int[] array, PrintStream stream) Stores an array to a given print stream.static voidstoreInts(int[] array, CharSequence filename) Stores an array to a file given by a pathname.static voidstoreInts(IntIterator i, File file) Stores the element returned by an iterator to a file given by aFileobject.static voidstoreInts(IntIterator i, PrintStream stream) Stores the element returned by an iterator to a given print stream.static voidstoreInts(IntIterator i, CharSequence filename) Stores the element returned by an iterator to a file given by a pathname.static voidstoreLongs(long[][] array, long offset, long length, File file) Stores a big-array fragment to a file given by aFileobject.static voidstoreLongs(long[][] array, long offset, long length, PrintStream stream) Stores a big-array fragment to a given print stream.static voidstoreLongs(long[][] array, long offset, long length, CharSequence filename) Stores a big-array fragment to a file given by a pathname.static voidstoreLongs(long[][] array, File file) Stores a big array to a file given by aFileobject.static voidstoreLongs(long[][] array, PrintStream stream) Stores a big array to a given print stream.static voidstoreLongs(long[][] array, CharSequence filename) Stores a big array to a file given by a pathname.static voidstoreLongs(long[] array, int offset, int length, File file) Stores an array fragment to a file given by aFileobject.static voidstoreLongs(long[] array, int offset, int length, PrintStream stream) Stores an array fragment to a given print stream.static voidstoreLongs(long[] array, int offset, int length, CharSequence filename) Stores an array fragment to a file given by a pathname.static voidstoreLongs(long[] array, File file) Stores an array to a file given by aFileobject.static voidstoreLongs(long[] array, PrintStream stream) Stores an array to a given print stream.static voidstoreLongs(long[] array, CharSequence filename) Stores an array to a file given by a pathname.static voidstoreLongs(LongIterator i, File file) Stores the element returned by an iterator to a file given by aFileobject.static voidstoreLongs(LongIterator i, PrintStream stream) Stores the element returned by an iterator to a given print stream.static voidstoreLongs(LongIterator i, CharSequence filename) Stores the element returned by an iterator to a file given by a pathname.static voidstoreShorts(short[][] array, long offset, long length, File file) Stores a big-array fragment to a file given by aFileobject.static voidstoreShorts(short[][] array, long offset, long length, PrintStream stream) Stores a big-array fragment to a given print stream.static voidstoreShorts(short[][] array, long offset, long length, CharSequence filename) Stores a big-array fragment to a file given by a pathname.static voidstoreShorts(short[][] array, File file) Stores a big array to a file given by aFileobject.static voidstoreShorts(short[][] array, PrintStream stream) Stores a big array to a given print stream.static voidstoreShorts(short[][] array, CharSequence filename) Stores a big array to a file given by a pathname.static voidstoreShorts(short[] array, int offset, int length, File file) Stores an array fragment to a file given by aFileobject.static voidstoreShorts(short[] array, int offset, int length, PrintStream stream) Stores an array fragment to a given print stream.static voidstoreShorts(short[] array, int offset, int length, CharSequence filename) Stores an array fragment to a file given by a pathname.static voidstoreShorts(short[] array, File file) Stores an array to a file given by aFileobject.static voidstoreShorts(short[] array, PrintStream stream) Stores an array to a given print stream.static voidstoreShorts(short[] array, CharSequence filename) Stores an array to a file given by a pathname.static voidstoreShorts(ShortIterator i, File file) Stores the element returned by an iterator to a file given by aFileobject.static voidstoreShorts(ShortIterator i, PrintStream stream) Stores the element returned by an iterator to a given print stream.static voidstoreShorts(ShortIterator i, CharSequence filename) Stores the element returned by an iterator to a file given by a pathname.
-
Field Details
-
BUFFER_SIZE
public static final int BUFFER_SIZEThe size of the buffer used for all I/O on files.- See Also:
-
-
Method Details
-
loadInts
public static int loadInts(BufferedReader reader, int[] array, int offset, int length) throws IOException Loads 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:
IOException
-
loadInts
Loads 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:
IOException
-
loadInts
Loads 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:
IOException
-
loadInts
public static int loadInts(CharSequence filename, int[] array, int offset, int length) throws IOException Loads 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:
IOException
-
loadInts
Loads 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:
IOException
-
loadInts
Loads 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:
IOException
-
storeInts
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
Stores an array to a given print stream.- Parameters:
array- an array whose elements will be written tostream.stream- a print stream.
-
storeInts
Stores 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:
IOException
-
storeInts
public static void storeInts(int[] array, int offset, int length, CharSequence filename) throws IOException Stores 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:
IOException
-
storeInts
Stores an array to a file given by aFileobject.- Parameters:
array- an array whose elements will be written tofilename.file- a file.- Throws:
IOException
-
storeInts
Stores an array to a file given by a pathname.- Parameters:
array- an array whose elements will be written tofilename.filename- a filename.- Throws:
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:
IOException
-
storeInts
Stores 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:
IOException
-
loadInts
public static long loadInts(BufferedReader reader, int[][] array, long offset, long length) throws IOException Loads 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:
IOException
-
loadInts
Loads 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:
IOException
-
loadInts
Loads 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:
IOException
-
loadInts
public static long loadInts(CharSequence filename, int[][] array, long offset, long length) throws IOException Loads 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:
IOException
-
loadInts
Loads 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:
IOException
-
loadInts
Loads 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:
IOException
-
storeInts
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
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
Stores 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:
IOException
-
storeInts
public static void storeInts(int[][] array, long offset, long length, CharSequence filename) throws IOException Stores 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:
IOException
-
storeInts
Stores a big array to a file given by aFileobject.- Parameters:
array- a big array whose elements will be written tofilename.file- a file.- Throws:
IOException
-
storeInts
Stores 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:
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:
IOException
-
asIntIterator
Wraps a file given by a pathname into an iterator.- Parameters:
filename- a filename.- Throws:
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(BufferedReader reader, long[] array, int offset, int length) throws IOException Loads 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:
IOException
-
loadLongs
Loads 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:
IOException
-
loadLongs
Loads 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:
IOException
-
loadLongs
public static int loadLongs(CharSequence filename, long[] array, int offset, int length) throws IOException Loads 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:
IOException
-
loadLongs
Loads 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:
IOException
-
loadLongs
Loads 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:
IOException
-
storeLongs
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
Stores an array to a given print stream.- Parameters:
array- an array whose elements will be written tostream.stream- a print stream.
-
storeLongs
Stores 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:
IOException
-
storeLongs
public static void storeLongs(long[] array, int offset, int length, CharSequence filename) throws IOException Stores 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:
IOException
-
storeLongs
Stores an array to a file given by aFileobject.- Parameters:
array- an array whose elements will be written tofilename.file- a file.- Throws:
IOException
-
storeLongs
Stores an array to a file given by a pathname.- Parameters:
array- an array whose elements will be written tofilename.filename- a filename.- Throws:
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:
IOException
-
storeLongs
Stores 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:
IOException
-
loadLongs
public static long loadLongs(BufferedReader reader, long[][] array, long offset, long length) throws IOException Loads 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:
IOException
-
loadLongs
Loads 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:
IOException
-
loadLongs
public static long loadLongs(File file, long[][] array, long offset, long length) throws IOException Loads 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:
IOException
-
loadLongs
public static long loadLongs(CharSequence filename, long[][] array, long offset, long length) throws IOException Loads 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:
IOException
-
loadLongs
Loads 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:
IOException
-
loadLongs
Loads 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:
IOException
-
storeLongs
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
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, File file) throws IOException Stores 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:
IOException
-
storeLongs
public static void storeLongs(long[][] array, long offset, long length, CharSequence filename) throws IOException Stores 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:
IOException
-
storeLongs
Stores a big array to a file given by aFileobject.- Parameters:
array- a big array whose elements will be written tofilename.file- a file.- Throws:
IOException
-
storeLongs
Stores 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:
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:
IOException
-
asLongIterator
Wraps a file given by a pathname into an iterator.- Parameters:
filename- a filename.- Throws:
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(BufferedReader reader, double[] array, int offset, int length) throws IOException Loads 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:
IOException
-
loadDoubles
Loads 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:
IOException
-
loadDoubles
Loads 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:
IOException
-
loadDoubles
public static int loadDoubles(CharSequence filename, double[] array, int offset, int length) throws IOException Loads 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:
IOException
-
loadDoubles
Loads 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:
IOException
-
loadDoubles
Loads 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:
IOException
-
storeDoubles
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
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, File file) throws IOException Stores 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:
IOException
-
storeDoubles
public static void storeDoubles(double[] array, int offset, int length, CharSequence filename) throws IOException Stores 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:
IOException
-
storeDoubles
Stores an array to a file given by aFileobject.- Parameters:
array- an array whose elements will be written tofilename.file- a file.- Throws:
IOException
-
storeDoubles
Stores an array to a file given by a pathname.- Parameters:
array- an array whose elements will be written tofilename.filename- a filename.- Throws:
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:
IOException
-
storeDoubles
Stores 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:
IOException
-
loadDoubles
public static long loadDoubles(BufferedReader reader, double[][] array, long offset, long length) throws IOException Loads 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:
IOException
-
loadDoubles
Loads 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:
IOException
-
loadDoubles
public static long loadDoubles(File file, double[][] array, long offset, long length) throws IOException Loads 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:
IOException
-
loadDoubles
public static long loadDoubles(CharSequence filename, double[][] array, long offset, long length) throws IOException Loads 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:
IOException
-
loadDoubles
Loads 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:
IOException
-
loadDoubles
Loads 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:
IOException
-
storeDoubles
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
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, File file) throws IOException Stores 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:
IOException
-
storeDoubles
public static void storeDoubles(double[][] array, long offset, long length, CharSequence filename) throws IOException Stores 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:
IOException
-
storeDoubles
Stores a big array to a file given by aFileobject.- Parameters:
array- a big array whose elements will be written tofilename.file- a file.- Throws:
IOException
-
storeDoubles
Stores 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:
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:
IOException
-
asDoubleIterator
Wraps a file given by a pathname into an iterator.- Parameters:
filename- a filename.- Throws:
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(BufferedReader reader, boolean[] array, int offset, int length) throws IOException Loads 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:
IOException
-
loadBooleans
Loads 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:
IOException
-
loadBooleans
public static int loadBooleans(File file, boolean[] array, int offset, int length) throws IOException Loads 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:
IOException
-
loadBooleans
public static int loadBooleans(CharSequence filename, boolean[] array, int offset, int length) throws IOException Loads 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:
IOException
-
loadBooleans
Loads 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:
IOException
-
loadBooleans
Loads 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:
IOException
-
storeBooleans
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
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, File file) throws IOException Stores 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:
IOException
-
storeBooleans
public static void storeBooleans(boolean[] array, int offset, int length, CharSequence filename) throws IOException Stores 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:
IOException
-
storeBooleans
Stores an array to a file given by aFileobject.- Parameters:
array- an array whose elements will be written tofilename.file- a file.- Throws:
IOException
-
storeBooleans
Stores an array to a file given by a pathname.- Parameters:
array- an array whose elements will be written tofilename.filename- a filename.- Throws:
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:
IOException
-
storeBooleans
Stores 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:
IOException
-
loadBooleans
public static long loadBooleans(BufferedReader reader, boolean[][] array, long offset, long length) throws IOException Loads 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:
IOException
-
loadBooleans
Loads 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:
IOException
-
loadBooleans
public static long loadBooleans(File file, boolean[][] array, long offset, long length) throws IOException Loads 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:
IOException
-
loadBooleans
public static long loadBooleans(CharSequence filename, boolean[][] array, long offset, long length) throws IOException Loads 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:
IOException
-
loadBooleans
Loads 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:
IOException
-
loadBooleans
Loads 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:
IOException
-
storeBooleans
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
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, File file) throws IOException Stores 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:
IOException
-
storeBooleans
public static void storeBooleans(boolean[][] array, long offset, long length, CharSequence filename) throws IOException Stores 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:
IOException
-
storeBooleans
Stores a big array to a file given by aFileobject.- Parameters:
array- a big array whose elements will be written tofilename.file- a file.- Throws:
IOException
-
storeBooleans
Stores 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:
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:
IOException
-
asBooleanIterator
Wraps a file given by a pathname into an iterator.- Parameters:
filename- a filename.- Throws:
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(BufferedReader reader, byte[] array, int offset, int length) throws IOException Loads 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:
IOException
-
loadBytes
Loads 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:
IOException
-
loadBytes
Loads 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:
IOException
-
loadBytes
public static int loadBytes(CharSequence filename, byte[] array, int offset, int length) throws IOException Loads 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:
IOException
-
loadBytes
Loads 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:
IOException
-
loadBytes
Loads 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:
IOException
-
storeBytes
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
Stores an array to a given print stream.- Parameters:
array- an array whose elements will be written tostream.stream- a print stream.
-
storeBytes
Stores 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:
IOException
-
storeBytes
public static void storeBytes(byte[] array, int offset, int length, CharSequence filename) throws IOException Stores 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:
IOException
-
storeBytes
Stores an array to a file given by aFileobject.- Parameters:
array- an array whose elements will be written tofilename.file- a file.- Throws:
IOException
-
storeBytes
Stores an array to a file given by a pathname.- Parameters:
array- an array whose elements will be written tofilename.filename- a filename.- Throws:
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:
IOException
-
storeBytes
Stores 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:
IOException
-
loadBytes
public static long loadBytes(BufferedReader reader, byte[][] array, long offset, long length) throws IOException Loads 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:
IOException
-
loadBytes
Loads 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:
IOException
-
loadBytes
public static long loadBytes(File file, byte[][] array, long offset, long length) throws IOException Loads 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:
IOException
-
loadBytes
public static long loadBytes(CharSequence filename, byte[][] array, long offset, long length) throws IOException Loads 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:
IOException
-
loadBytes
Loads 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:
IOException
-
loadBytes
Loads 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:
IOException
-
storeBytes
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
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, File file) throws IOException Stores 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:
IOException
-
storeBytes
public static void storeBytes(byte[][] array, long offset, long length, CharSequence filename) throws IOException Stores 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:
IOException
-
storeBytes
Stores a big array to a file given by aFileobject.- Parameters:
array- a big array whose elements will be written tofilename.file- a file.- Throws:
IOException
-
storeBytes
Stores 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:
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:
IOException
-
asByteIterator
Wraps a file given by a pathname into an iterator.- Parameters:
filename- a filename.- Throws:
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(BufferedReader reader, short[] array, int offset, int length) throws IOException Loads 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:
IOException
-
loadShorts
Loads 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:
IOException
-
loadShorts
Loads 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:
IOException
-
loadShorts
public static int loadShorts(CharSequence filename, short[] array, int offset, int length) throws IOException Loads 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:
IOException
-
loadShorts
Loads 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:
IOException
-
loadShorts
Loads 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:
IOException
-
storeShorts
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
Stores an array to a given print stream.- Parameters:
array- an array whose elements will be written tostream.stream- a print stream.
-
storeShorts
Stores 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:
IOException
-
storeShorts
public static void storeShorts(short[] array, int offset, int length, CharSequence filename) throws IOException Stores 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:
IOException
-
storeShorts
Stores an array to a file given by aFileobject.- Parameters:
array- an array whose elements will be written tofilename.file- a file.- Throws:
IOException
-
storeShorts
Stores an array to a file given by a pathname.- Parameters:
array- an array whose elements will be written tofilename.filename- a filename.- Throws:
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:
IOException
-
storeShorts
Stores 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:
IOException
-
loadShorts
public static long loadShorts(BufferedReader reader, short[][] array, long offset, long length) throws IOException Loads 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:
IOException
-
loadShorts
Loads 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:
IOException
-
loadShorts
public static long loadShorts(File file, short[][] array, long offset, long length) throws IOException Loads 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:
IOException
-
loadShorts
public static long loadShorts(CharSequence filename, short[][] array, long offset, long length) throws IOException Loads 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:
IOException
-
loadShorts
Loads 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:
IOException
-
loadShorts
Loads 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:
IOException
-
storeShorts
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
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, File file) throws IOException Stores 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:
IOException
-
storeShorts
public static void storeShorts(short[][] array, long offset, long length, CharSequence filename) throws IOException Stores 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:
IOException
-
storeShorts
Stores a big array to a file given by aFileobject.- Parameters:
array- a big array whose elements will be written tofilename.file- a file.- Throws:
IOException
-
storeShorts
Stores 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:
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:
IOException
-
asShortIterator
Wraps a file given by a pathname into an iterator.- Parameters:
filename- a filename.- Throws:
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(BufferedReader reader, float[] array, int offset, int length) throws IOException Loads 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:
IOException
-
loadFloats
Loads 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:
IOException
-
loadFloats
Loads 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:
IOException
-
loadFloats
public static int loadFloats(CharSequence filename, float[] array, int offset, int length) throws IOException Loads 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:
IOException
-
loadFloats
Loads 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:
IOException
-
loadFloats
Loads 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:
IOException
-
storeFloats
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
Stores an array to a given print stream.- Parameters:
array- an array whose elements will be written tostream.stream- a print stream.
-
storeFloats
Stores 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:
IOException
-
storeFloats
public static void storeFloats(float[] array, int offset, int length, CharSequence filename) throws IOException Stores 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:
IOException
-
storeFloats
Stores an array to a file given by aFileobject.- Parameters:
array- an array whose elements will be written tofilename.file- a file.- Throws:
IOException
-
storeFloats
Stores an array to a file given by a pathname.- Parameters:
array- an array whose elements will be written tofilename.filename- a filename.- Throws:
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:
IOException
-
storeFloats
Stores 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:
IOException
-
loadFloats
public static long loadFloats(BufferedReader reader, float[][] array, long offset, long length) throws IOException Loads 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:
IOException
-
loadFloats
Loads 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:
IOException
-
loadFloats
public static long loadFloats(File file, float[][] array, long offset, long length) throws IOException Loads 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:
IOException
-
loadFloats
public static long loadFloats(CharSequence filename, float[][] array, long offset, long length) throws IOException Loads 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:
IOException
-
loadFloats
Loads 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:
IOException
-
loadFloats
Loads 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:
IOException
-
storeFloats
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
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, File file) throws IOException Stores 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:
IOException
-
storeFloats
public static void storeFloats(float[][] array, long offset, long length, CharSequence filename) throws IOException Stores 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:
IOException
-
storeFloats
Stores a big array to a file given by aFileobject.- Parameters:
array- a big array whose elements will be written tofilename.file- a file.- Throws:
IOException
-
storeFloats
Stores 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:
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:
IOException
-
asFloatIterator
Wraps a file given by a pathname into an iterator.- Parameters:
filename- a filename.- Throws:
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.
-