Class BinIO
This class fills some gaps in the Java API. First of all, you have two buffered, easy-to-use methods to store an object to a file or load an object from a file, and two buffered, easy-to-use methods to store an object to an output stream or to load an object from an input stream.
Second, a natural operation on sequences of primitive elements is to load or
store them in binary form using the DataInput conventions. This
method is much more flexible than storing arrays as objects, as it allows
for partial load, partial store, and makes it easy to read the
resulting files from other languages.
For each primitive type, this class provides methods that read elements
from a DataInput, an InputStream or from a file into an array
or a big array, or expose those elements as a type-specific iterator.
There are also methods that let you choose a byte order and
that work with byte channels.
Analogously, there are
methods that store the content of a (big) array (fragment) or the elements
returned by an iterator to a DataOutput, to an OutputStream,
to a WritableByteChannel, or to a given file. Files
are buffered using FastBufferedInputStream and FastBufferedOutputStream,
or, when possible, with a byte buffer allocated with
ByteBuffer.allocateDirect(int).
Since bytes can be read from or written to any stream, additional methods
makes it possible to load bytes from and
store bytes to a stream. Such methods
use the bulk-read methods of InputStream and OutputStream, but they
also include a workaround for bug #6478546.
The store methods with a specified byte order are particularly useful when writing data that is intended to be mapped into memory, as using the native order enhances performances significantly.
- Since:
- 4.4
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic it.unimi.dsi.fastutil.booleans.BooleanIterableasBooleanIterable(File file) Wraps a file given by aFileobject into an iterable object.static it.unimi.dsi.fastutil.booleans.BooleanIterableasBooleanIterable(CharSequence filename) Wraps a file given by a filename into an iterable object.static it.unimi.dsi.fastutil.booleans.BooleanIteratorasBooleanIterator(DataInput dataInput) Wraps the given data input stream into an iterator.static it.unimi.dsi.fastutil.booleans.BooleanIteratorasBooleanIterator(File file) Wraps a file given by aFileobject into an iterator.static it.unimi.dsi.fastutil.booleans.BooleanIteratorasBooleanIterator(CharSequence filename) Wraps a file given by a filename into an iterator.static it.unimi.dsi.fastutil.bytes.ByteIterableasByteIterable(File file) Wraps a file given by aFileobject into an iterable object.static it.unimi.dsi.fastutil.bytes.ByteIterableasByteIterable(CharSequence filename) Wraps a file given by a filename into an iterable object.static it.unimi.dsi.fastutil.bytes.ByteIteratorasByteIterator(DataInput dataInput) Wraps the given data input stream into an iterator.static it.unimi.dsi.fastutil.bytes.ByteIteratorasByteIterator(File file) Wraps a file given by aFileobject into an iterator.static it.unimi.dsi.fastutil.bytes.ByteIteratorasByteIterator(CharSequence filename) Wraps a file given by a filename into an iterator.static it.unimi.dsi.fastutil.chars.CharIterableasCharIterable(File file) Wraps a file given by aFileobject into an iterable object.static it.unimi.dsi.fastutil.chars.CharIterableasCharIterable(File file, ByteOrder byteOrder) Wraps a file given by aFileobject, using the given byte order, into an iterable object.static it.unimi.dsi.fastutil.chars.CharIterableasCharIterable(CharSequence filename) Wraps a file given by a filename into an iterable object.static it.unimi.dsi.fastutil.chars.CharIterableasCharIterable(CharSequence filename, ByteOrder byteOrder) Wraps a file given by a filename, using the given byte order, into an iterable object.static it.unimi.dsi.fastutil.chars.CharIteratorasCharIterator(DataInput dataInput) Wraps the given data input stream into an iterator.static it.unimi.dsi.fastutil.chars.CharIteratorasCharIterator(File file) Wraps a file given by aFileobject into an iterator.static it.unimi.dsi.fastutil.chars.CharIteratorasCharIterator(File file, ByteOrder byteOrder) Wraps a file given by aFileobject, using the given byte order, into an iterator.static it.unimi.dsi.fastutil.chars.CharIteratorasCharIterator(CharSequence filename) Wraps a file given by a filename into an iterator.static it.unimi.dsi.fastutil.chars.CharIteratorasCharIterator(CharSequence filename, ByteOrder byteOrder) Wraps a file given by a filename, using the given byte order, into an iterator.static it.unimi.dsi.fastutil.chars.CharIteratorasCharIterator(ReadableByteChannel channel, ByteOrder byteOrder) Wraps the given readable channel, using the given byte order, into an iterator.static it.unimi.dsi.fastutil.doubles.DoubleIterableasDoubleIterable(File file) Wraps a file given by aFileobject into an iterable object.static it.unimi.dsi.fastutil.doubles.DoubleIterableasDoubleIterable(File file, ByteOrder byteOrder) Wraps a file given by aFileobject, using the given byte order, into an iterable object.static it.unimi.dsi.fastutil.doubles.DoubleIterableasDoubleIterable(CharSequence filename) Wraps a file given by a filename into an iterable object.static it.unimi.dsi.fastutil.doubles.DoubleIterableasDoubleIterable(CharSequence filename, ByteOrder byteOrder) Wraps a file given by a filename, using the given byte order, into an iterable object.static it.unimi.dsi.fastutil.doubles.DoubleIteratorasDoubleIterator(DataInput dataInput) Wraps the given data input stream into an iterator.static it.unimi.dsi.fastutil.doubles.DoubleIteratorasDoubleIterator(File file) Wraps a file given by aFileobject into an iterator.static it.unimi.dsi.fastutil.doubles.DoubleIteratorasDoubleIterator(File file, ByteOrder byteOrder) Wraps a file given by aFileobject, using the given byte order, into an iterator.static it.unimi.dsi.fastutil.doubles.DoubleIteratorasDoubleIterator(CharSequence filename) Wraps a file given by a filename into an iterator.static it.unimi.dsi.fastutil.doubles.DoubleIteratorasDoubleIterator(CharSequence filename, ByteOrder byteOrder) Wraps a file given by a filename, using the given byte order, into an iterator.static it.unimi.dsi.fastutil.doubles.DoubleIteratorasDoubleIterator(ReadableByteChannel channel, ByteOrder byteOrder) Wraps the given readable channel, using the given byte order, into an iterator.static it.unimi.dsi.fastutil.floats.FloatIterableasFloatIterable(File file) Wraps a file given by aFileobject into an iterable object.static it.unimi.dsi.fastutil.floats.FloatIterableasFloatIterable(File file, ByteOrder byteOrder) Wraps a file given by aFileobject, using the given byte order, into an iterable object.static it.unimi.dsi.fastutil.floats.FloatIterableasFloatIterable(CharSequence filename) Wraps a file given by a filename into an iterable object.static it.unimi.dsi.fastutil.floats.FloatIterableasFloatIterable(CharSequence filename, ByteOrder byteOrder) Wraps a file given by a filename, using the given byte order, into an iterable object.static it.unimi.dsi.fastutil.floats.FloatIteratorasFloatIterator(DataInput dataInput) Wraps the given data input stream into an iterator.static it.unimi.dsi.fastutil.floats.FloatIteratorasFloatIterator(File file) Wraps a file given by aFileobject into an iterator.static it.unimi.dsi.fastutil.floats.FloatIteratorasFloatIterator(File file, ByteOrder byteOrder) Wraps a file given by aFileobject, using the given byte order, into an iterator.static it.unimi.dsi.fastutil.floats.FloatIteratorasFloatIterator(CharSequence filename) Wraps a file given by a filename into an iterator.static it.unimi.dsi.fastutil.floats.FloatIteratorasFloatIterator(CharSequence filename, ByteOrder byteOrder) Wraps a file given by a filename, using the given byte order, into an iterator.static it.unimi.dsi.fastutil.floats.FloatIteratorasFloatIterator(ReadableByteChannel channel, ByteOrder byteOrder) Wraps the given readable channel, using the given byte order, into an iterator.static it.unimi.dsi.fastutil.ints.IntIterableasIntIterable(File file) Wraps a file given by aFileobject into an iterable object.static it.unimi.dsi.fastutil.ints.IntIterableasIntIterable(File file, ByteOrder byteOrder) Wraps a file given by aFileobject, using the given byte order, into an iterable object.static it.unimi.dsi.fastutil.ints.IntIterableasIntIterable(CharSequence filename) Wraps a file given by a filename into an iterable object.static it.unimi.dsi.fastutil.ints.IntIterableasIntIterable(CharSequence filename, ByteOrder byteOrder) Wraps a file given by a filename, using the given byte order, into an iterable object.static it.unimi.dsi.fastutil.ints.IntIteratorasIntIterator(DataInput dataInput) Wraps the given data input stream into an iterator.static it.unimi.dsi.fastutil.ints.IntIteratorasIntIterator(File file) Wraps a file given by aFileobject into an iterator.static it.unimi.dsi.fastutil.ints.IntIteratorasIntIterator(File file, ByteOrder byteOrder) Wraps a file given by aFileobject, using the given byte order, into an iterator.static it.unimi.dsi.fastutil.ints.IntIteratorasIntIterator(CharSequence filename) Wraps a file given by a filename into an iterator.static it.unimi.dsi.fastutil.ints.IntIteratorasIntIterator(CharSequence filename, ByteOrder byteOrder) Wraps a file given by a filename, using the given byte order, into an iterator.static it.unimi.dsi.fastutil.ints.IntIteratorasIntIterator(ReadableByteChannel channel, ByteOrder byteOrder) Wraps the given readable channel, using the given byte order, into an iterator.static it.unimi.dsi.fastutil.longs.LongIterableasLongIterable(File file) Wraps a file given by aFileobject into an iterable object.static it.unimi.dsi.fastutil.longs.LongIterableasLongIterable(File file, ByteOrder byteOrder) Wraps a file given by aFileobject, using the given byte order, into an iterable object.static it.unimi.dsi.fastutil.longs.LongIterableasLongIterable(CharSequence filename) Wraps a file given by a filename into an iterable object.static it.unimi.dsi.fastutil.longs.LongIterableasLongIterable(CharSequence filename, ByteOrder byteOrder) Wraps a file given by a filename, using the given byte order, into an iterable object.static it.unimi.dsi.fastutil.longs.LongIteratorasLongIterator(DataInput dataInput) Wraps the given data input stream into an iterator.static it.unimi.dsi.fastutil.longs.LongIteratorasLongIterator(File file) Wraps a file given by aFileobject into an iterator.static it.unimi.dsi.fastutil.longs.LongIteratorasLongIterator(File file, ByteOrder byteOrder) Wraps a file given by aFileobject, using the given byte order, into an iterator.static it.unimi.dsi.fastutil.longs.LongIteratorasLongIterator(CharSequence filename) Wraps a file given by a filename into an iterator.static it.unimi.dsi.fastutil.longs.LongIteratorasLongIterator(CharSequence filename, ByteOrder byteOrder) Wraps a file given by a filename, using the given byte order, into an iterator.static it.unimi.dsi.fastutil.longs.LongIteratorasLongIterator(ReadableByteChannel channel, ByteOrder byteOrder) Wraps the given readable channel, using the given byte order, into an iterator.static it.unimi.dsi.fastutil.shorts.ShortIterableasShortIterable(File file) Wraps a file given by aFileobject into an iterable object.static it.unimi.dsi.fastutil.shorts.ShortIterableasShortIterable(File file, ByteOrder byteOrder) Wraps a file given by aFileobject, using the given byte order, into an iterable object.static it.unimi.dsi.fastutil.shorts.ShortIterableasShortIterable(CharSequence filename) Wraps a file given by a filename into an iterable object.static it.unimi.dsi.fastutil.shorts.ShortIterableasShortIterable(CharSequence filename, ByteOrder byteOrder) Wraps a file given by a filename, using the given byte order, into an iterable object.static it.unimi.dsi.fastutil.shorts.ShortIteratorasShortIterator(DataInput dataInput) Wraps the given data input stream into an iterator.static it.unimi.dsi.fastutil.shorts.ShortIteratorasShortIterator(File file) Wraps a file given by aFileobject into an iterator.static it.unimi.dsi.fastutil.shorts.ShortIteratorasShortIterator(File file, ByteOrder byteOrder) Wraps a file given by aFileobject, using the given byte order, into an iterator.static it.unimi.dsi.fastutil.shorts.ShortIteratorasShortIterator(CharSequence filename) Wraps a file given by a filename into an iterator.static it.unimi.dsi.fastutil.shorts.ShortIteratorasShortIterator(CharSequence filename, ByteOrder byteOrder) Wraps a file given by a filename, using the given byte order, into an iterator.static it.unimi.dsi.fastutil.shorts.ShortIteratorasShortIterator(ReadableByteChannel channel, ByteOrder byteOrder) Wraps the given readable channel, using the given byte order, into an iterator.static intloadBooleans(DataInput dataInput, boolean[] array) Loads elements from a given data input, storing them in a given array.static longloadBooleans(DataInput dataInput, boolean[][] array) Loads elements from a given data input, storing them in a given big array.static longloadBooleans(DataInput dataInput, boolean[][] array, long offset, long length) Loads elements from a given data input, storing them in a given big-array fragment.static intloadBooleans(DataInput dataInput, boolean[] array, int offset, int length) Loads elements from a given data input, storing them in a given array fragment.static boolean[]loadBooleans(File file) Loads elements from a file given by aFileobject, storing them in a new array.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 big 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 boolean[]loadBooleans(CharSequence filename) Loads elements from a file given by a filename, storing them in a new array.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 big 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 boolean[][]loadBooleansBig(File file) Loads elements from a file given by aFileobject, storing them in a new big array.static boolean[][]loadBooleansBig(CharSequence filename) Loads elements from a file given by a filename, storing them in a new big array.static intLoads elements from a given data input, storing them in a given array.static longLoads elements from a given data input, storing them in a given big array.static longLoads elements from a given data input, storing them in a given big-array fragment.static intLoads elements from a given data input, storing them in a given array fragment.static byte[]Loads elements from a file given by aFileobject, storing them in a new array.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 big 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(InputStream inputStream, byte[] array) Loads bytes from a given input stream, storing them in a given array.static longloadBytes(InputStream inputStream, byte[][] array) Loads bytes from a given readable channel, storing them in a given big array.static longloadBytes(InputStream inputStream, byte[][] array, long offset, long length) Loads bytes from a given readable channel, storing them in a given big-array fragment.static intloadBytes(InputStream inputStream, byte[] array, int offset, int length) Loads bytes from a given input stream, storing them in a given array fragment.static byte[]loadBytes(CharSequence filename) Loads elements from a file given by a filename, storing them in a new array.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 big 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 intloadBytes(ReadableByteChannel channel, byte[] array) Loads bytes from a given readable channel, storing them in a given array.static longloadBytes(ReadableByteChannel channel, byte[][] array) Loads bytes from a given readable channel, storing them in a given big array.static longloadBytes(ReadableByteChannel channel, byte[][] array, long offset, long length) Loads bytes from a given readable channel, storing them in a given big-array fragment.static intloadBytes(ReadableByteChannel channel, byte[] array, int offset, int length) Loads bytes from a given readable channel, storing them in a given array fragment.static byte[][]loadBytesBig(File file) Loads elements from a file given by aFileobject, storing them in a new big array.static byte[][]loadBytesBig(CharSequence filename) Loads elements from a file given by a filename, storing them in a new big array.static intLoads elements from a given data input, storing them in a given array.static longLoads elements from a given data input, storing them in a given big array.static longLoads elements from a given data input, storing them in a given big-array fragment.static intLoads elements from a given data input, storing them in a given array fragment.static char[]Loads elements from a file given by aFileobject, storing them in a new array.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 big 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 char[]Loads elements from a file given by aFileobject, using the given byte order, storing them in a new array.static intLoads elements from a file given by aFileobject, using the given byte order, storing them in a given array.static longLoads elements from a file given by aFileobject, using the given byte order, storing them in a given big array.static longLoads elements from a file given by aFileobject, using the given byte order, storing them in a given big-array fragment.static intLoads elements from a file given by aFileobject, using the given byte order, storing them in a given array fragment.static char[]loadChars(CharSequence filename) Loads elements from a file given by a filename, storing them in a new array.static intloadChars(CharSequence filename, char[] array) Loads elements from a file given by a filename, storing them in a given array.static longloadChars(CharSequence filename, char[][] array) Loads elements from a file given by a filename, storing them in a given big array.static longloadChars(CharSequence filename, char[][] array, long offset, long length) Loads elements from a file given by a filename, storing them in a given big-array fragment.static intloadChars(CharSequence filename, char[] array, int offset, int length) Loads elements from a file given by a filename, storing them in a given array fragment.static char[]loadChars(CharSequence filename, ByteOrder byteOrder) Loads elements from a file given by a filename, using the given byte order, storing them in a new array.static intloadChars(CharSequence filename, ByteOrder byteOrder, char[] array) Loads elements from a file given by a filename, using the given byte order, storing them in a given array.static longloadChars(CharSequence filename, ByteOrder byteOrder, char[][] array) Loads elements from a file given by a filename, using the given byte order, storing them in a given big array.static longloadChars(CharSequence filename, ByteOrder byteOrder, char[][] array, long offset, long length) Loads elements from a file given by a filename, using the given byte order, storing them in a given big-array fragment.static intloadChars(CharSequence filename, ByteOrder byteOrder, char[] array, int offset, int length) Loads elements from a file given by a filename, using the given byte order, storing them in a given array fragment.static intloadChars(ReadableByteChannel channel, ByteOrder byteOrder, char[] array) Loads elements from a given readable channel, using the given byte order, storing them in a given array.static longloadChars(ReadableByteChannel channel, ByteOrder byteOrder, char[][] array) Loads elements from a given readable channel, using the given byte order, storing them in a given big array.static longloadChars(ReadableByteChannel channel, ByteOrder byteOrder, char[][] array, long offset, long length) Loads elements from a given readable channel, using the given byte order, storing them in a given big-array fragment.static intloadChars(ReadableByteChannel channel, ByteOrder byteOrder, char[] array, int offset, int length) Loads elements from a given readable channel, using the given byte order, storing them in a given array fragment.static char[][]loadCharsBig(File file) Loads elements from a file given by aFileobject, storing them in a new big array.static char[][]loadCharsBig(File file, ByteOrder byteOrder) Loads elements from a file given by aFileobject, using the given byte order, storing them in a new big array.static char[][]loadCharsBig(CharSequence filename) Loads elements from a file given by a filename, storing them in a new big array.static char[][]loadCharsBig(CharSequence filename, ByteOrder byteOrder) Loads elements from a file given by a filename, using the given byte order, storing them in a new big array.static intloadDoubles(DataInput dataInput, double[] array) Loads elements from a given data input, storing them in a given array.static longloadDoubles(DataInput dataInput, double[][] array) Loads elements from a given data input, storing them in a given big array.static longloadDoubles(DataInput dataInput, double[][] array, long offset, long length) Loads elements from a given data input, storing them in a given big-array fragment.static intloadDoubles(DataInput dataInput, double[] array, int offset, int length) Loads elements from a given data input, storing them in a given array fragment.static double[]loadDoubles(File file) Loads elements from a file given by aFileobject, storing them in a new array.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 big 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 double[]loadDoubles(File file, ByteOrder byteOrder) Loads elements from a file given by aFileobject, using the given byte order, storing them in a new array.static intloadDoubles(File file, ByteOrder byteOrder, double[] array) Loads elements from a file given by aFileobject, using the given byte order, storing them in a given array.static longloadDoubles(File file, ByteOrder byteOrder, double[][] array) Loads elements from a file given by aFileobject, using the given byte order, storing them in a given big array.static longloadDoubles(File file, ByteOrder byteOrder, double[][] array, long offset, long length) Loads elements from a file given by aFileobject, using the given byte order, storing them in a given big-array fragment.static intloadDoubles(File file, ByteOrder byteOrder, double[] array, int offset, int length) Loads elements from a file given by aFileobject, using the given byte order, storing them in a given array fragment.static double[]loadDoubles(CharSequence filename) Loads elements from a file given by a filename, storing them in a new array.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 big 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 double[]loadDoubles(CharSequence filename, ByteOrder byteOrder) Loads elements from a file given by a filename, using the given byte order, storing them in a new array.static intloadDoubles(CharSequence filename, ByteOrder byteOrder, double[] array) Loads elements from a file given by a filename, using the given byte order, storing them in a given array.static longloadDoubles(CharSequence filename, ByteOrder byteOrder, double[][] array) Loads elements from a file given by a filename, using the given byte order, storing them in a given big array.static longloadDoubles(CharSequence filename, ByteOrder byteOrder, double[][] array, long offset, long length) Loads elements from a file given by a filename, using the given byte order, storing them in a given big-array fragment.static intloadDoubles(CharSequence filename, ByteOrder byteOrder, double[] array, int offset, int length) Loads elements from a file given by a filename, using the given byte order, storing them in a given array fragment.static intloadDoubles(ReadableByteChannel channel, ByteOrder byteOrder, double[] array) Loads elements from a given readable channel, using the given byte order, storing them in a given array.static longloadDoubles(ReadableByteChannel channel, ByteOrder byteOrder, double[][] array) Loads elements from a given readable channel, using the given byte order, storing them in a given big array.static longloadDoubles(ReadableByteChannel channel, ByteOrder byteOrder, double[][] array, long offset, long length) Loads elements from a given readable channel, using the given byte order, storing them in a given big-array fragment.static intloadDoubles(ReadableByteChannel channel, ByteOrder byteOrder, double[] array, int offset, int length) Loads elements from a given readable channel, using the given byte order, storing them in a given array fragment.static double[][]loadDoublesBig(File file) Loads elements from a file given by aFileobject, storing them in a new big array.static double[][]loadDoublesBig(File file, ByteOrder byteOrder) Loads elements from a file given by aFileobject, using the given byte order, storing them in a new big array.static double[][]loadDoublesBig(CharSequence filename) Loads elements from a file given by a filename, storing them in a new big array.static double[][]loadDoublesBig(CharSequence filename, ByteOrder byteOrder) Loads elements from a file given by a filename, using the given byte order, storing them in a new big array.static intloadFloats(DataInput dataInput, float[] array) Loads elements from a given data input, storing them in a given array.static longloadFloats(DataInput dataInput, float[][] array) Loads elements from a given data input, storing them in a given big array.static longloadFloats(DataInput dataInput, float[][] array, long offset, long length) Loads elements from a given data input, storing them in a given big-array fragment.static intloadFloats(DataInput dataInput, float[] array, int offset, int length) Loads elements from a given data input, storing them in a given array fragment.static float[]loadFloats(File file) Loads elements from a file given by aFileobject, storing them in a new array.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 big 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 float[]loadFloats(File file, ByteOrder byteOrder) Loads elements from a file given by aFileobject, using the given byte order, storing them in a new array.static intloadFloats(File file, ByteOrder byteOrder, float[] array) Loads elements from a file given by aFileobject, using the given byte order, storing them in a given array.static longloadFloats(File file, ByteOrder byteOrder, float[][] array) Loads elements from a file given by aFileobject, using the given byte order, storing them in a given big array.static longloadFloats(File file, ByteOrder byteOrder, float[][] array, long offset, long length) Loads elements from a file given by aFileobject, using the given byte order, storing them in a given big-array fragment.static intloadFloats(File file, ByteOrder byteOrder, float[] array, int offset, int length) Loads elements from a file given by aFileobject, using the given byte order, storing them in a given array fragment.static float[]loadFloats(CharSequence filename) Loads elements from a file given by a filename, storing them in a new array.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 big 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 float[]loadFloats(CharSequence filename, ByteOrder byteOrder) Loads elements from a file given by a filename, using the given byte order, storing them in a new array.static intloadFloats(CharSequence filename, ByteOrder byteOrder, float[] array) Loads elements from a file given by a filename, using the given byte order, storing them in a given array.static longloadFloats(CharSequence filename, ByteOrder byteOrder, float[][] array) Loads elements from a file given by a filename, using the given byte order, storing them in a given big array.static longloadFloats(CharSequence filename, ByteOrder byteOrder, float[][] array, long offset, long length) Loads elements from a file given by a filename, using the given byte order, storing them in a given big-array fragment.static intloadFloats(CharSequence filename, ByteOrder byteOrder, float[] array, int offset, int length) Loads elements from a file given by a filename, using the given byte order, storing them in a given array fragment.static intloadFloats(ReadableByteChannel channel, ByteOrder byteOrder, float[] array) Loads elements from a given readable channel, using the given byte order, storing them in a given array.static longloadFloats(ReadableByteChannel channel, ByteOrder byteOrder, float[][] array) Loads elements from a given readable channel, using the given byte order, storing them in a given big array.static longloadFloats(ReadableByteChannel channel, ByteOrder byteOrder, float[][] array, long offset, long length) Loads elements from a given readable channel, using the given byte order, storing them in a given big-array fragment.static intloadFloats(ReadableByteChannel channel, ByteOrder byteOrder, float[] array, int offset, int length) Loads elements from a given readable channel, using the given byte order, storing them in a given array fragment.static float[][]loadFloatsBig(File file) Loads elements from a file given by aFileobject, storing them in a new big array.static float[][]loadFloatsBig(File file, ByteOrder byteOrder) Loads elements from a file given by aFileobject, using the given byte order, storing them in a new big array.static float[][]loadFloatsBig(CharSequence filename) Loads elements from a file given by a filename, storing them in a new big array.static float[][]loadFloatsBig(CharSequence filename, ByteOrder byteOrder) Loads elements from a file given by a filename, using the given byte order, storing them in a new big array.static intLoads elements from a given data input, storing them in a given array.static longLoads elements from a given data input, storing them in a given big array.static longLoads elements from a given data input, storing them in a given big-array fragment.static intLoads elements from a given data input, storing them in a given array fragment.static int[]Loads elements from a file given by aFileobject, storing them in a new array.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 big 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 int[]Loads elements from a file given by aFileobject, using the given byte order, storing them in a new array.static intLoads elements from a file given by aFileobject, using the given byte order, storing them in a given array.static longLoads elements from a file given by aFileobject, using the given byte order, storing them in a given big array.static longLoads elements from a file given by aFileobject, using the given byte order, storing them in a given big-array fragment.static intLoads elements from a file given by aFileobject, using the given byte order, storing them in a given array fragment.static int[]loadInts(CharSequence filename) Loads elements from a file given by a filename, storing them in a new array.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 big 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 int[]loadInts(CharSequence filename, ByteOrder byteOrder) Loads elements from a file given by a filename, using the given byte order, storing them in a new array.static intloadInts(CharSequence filename, ByteOrder byteOrder, int[] array) Loads elements from a file given by a filename, using the given byte order, storing them in a given array.static longloadInts(CharSequence filename, ByteOrder byteOrder, int[][] array) Loads elements from a file given by a filename, using the given byte order, storing them in a given big array.static longloadInts(CharSequence filename, ByteOrder byteOrder, int[][] array, long offset, long length) Loads elements from a file given by a filename, using the given byte order, storing them in a given big-array fragment.static intloadInts(CharSequence filename, ByteOrder byteOrder, int[] array, int offset, int length) Loads elements from a file given by a filename, using the given byte order, storing them in a given array fragment.static intloadInts(ReadableByteChannel channel, ByteOrder byteOrder, int[] array) Loads elements from a given readable channel, using the given byte order, storing them in a given array.static longloadInts(ReadableByteChannel channel, ByteOrder byteOrder, int[][] array) Loads elements from a given readable channel, using the given byte order, storing them in a given big array.static longloadInts(ReadableByteChannel channel, ByteOrder byteOrder, int[][] array, long offset, long length) Loads elements from a given readable channel, using the given byte order, storing them in a given big-array fragment.static intloadInts(ReadableByteChannel channel, ByteOrder byteOrder, int[] array, int offset, int length) Loads elements from a given readable channel, using the given byte order, storing them in a given array fragment.static int[][]loadIntsBig(File file) Loads elements from a file given by aFileobject, storing them in a new big array.static int[][]loadIntsBig(File file, ByteOrder byteOrder) Loads elements from a file given by aFileobject, using the given byte order, storing them in a new big array.static int[][]loadIntsBig(CharSequence filename) Loads elements from a file given by a filename, storing them in a new big array.static int[][]loadIntsBig(CharSequence filename, ByteOrder byteOrder) Loads elements from a file given by a filename, using the given byte order, storing them in a new big array.static intLoads elements from a given data input, storing them in a given array.static longLoads elements from a given data input, storing them in a given big array.static longLoads elements from a given data input, storing them in a given big-array fragment.static intLoads elements from a given data input, storing them in a given array fragment.static long[]Loads elements from a file given by aFileobject, storing them in a new array.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 big 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 long[]Loads elements from a file given by aFileobject, using the given byte order, storing them in a new array.static intLoads elements from a file given by aFileobject, using the given byte order, storing them in a given array.static longLoads elements from a file given by aFileobject, using the given byte order, storing them in a given big array.static longLoads elements from a file given by aFileobject, using the given byte order, storing them in a given big-array fragment.static intLoads elements from a file given by aFileobject, using the given byte order, storing them in a given array fragment.static long[]loadLongs(CharSequence filename) Loads elements from a file given by a filename, storing them in a new array.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 big 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 long[]loadLongs(CharSequence filename, ByteOrder byteOrder) Loads elements from a file given by a filename, using the given byte order, storing them in a new array.static intloadLongs(CharSequence filename, ByteOrder byteOrder, long[] array) Loads elements from a file given by a filename, using the given byte order, storing them in a given array.static longloadLongs(CharSequence filename, ByteOrder byteOrder, long[][] array) Loads elements from a file given by a filename, using the given byte order, storing them in a given big array.static longloadLongs(CharSequence filename, ByteOrder byteOrder, long[][] array, long offset, long length) Loads elements from a file given by a filename, using the given byte order, storing them in a given big-array fragment.static intloadLongs(CharSequence filename, ByteOrder byteOrder, long[] array, int offset, int length) Loads elements from a file given by a filename, using the given byte order, storing them in a given array fragment.static intloadLongs(ReadableByteChannel channel, ByteOrder byteOrder, long[] array) Loads elements from a given readable channel, using the given byte order, storing them in a given array.static longloadLongs(ReadableByteChannel channel, ByteOrder byteOrder, long[][] array) Loads elements from a given readable channel, using the given byte order, storing them in a given big array.static longloadLongs(ReadableByteChannel channel, ByteOrder byteOrder, long[][] array, long offset, long length) Loads elements from a given readable channel, using the given byte order, storing them in a given big-array fragment.static intloadLongs(ReadableByteChannel channel, ByteOrder byteOrder, long[] array, int offset, int length) Loads elements from a given readable channel, using the given byte order, storing them in a given array fragment.static long[][]loadLongsBig(File file) Loads elements from a file given by aFileobject, storing them in a new big array.static long[][]loadLongsBig(File file, ByteOrder byteOrder) Loads elements from a file given by aFileobject, using the given byte order, storing them in a new big array.static long[][]loadLongsBig(CharSequence filename) Loads elements from a file given by a filename, storing them in a new big array.static long[][]loadLongsBig(CharSequence filename, ByteOrder byteOrder) Loads elements from a file given by a filename, using the given byte order, storing them in a new big array.static ObjectloadObject(File file) Loads an object from a file given by aFileobject.static ObjectLoads an object from a given input stream.static ObjectloadObject(CharSequence filename) Loads an object from a file given by a filename.static intloadShorts(DataInput dataInput, short[] array) Loads elements from a given data input, storing them in a given array.static longloadShorts(DataInput dataInput, short[][] array) Loads elements from a given data input, storing them in a given big array.static longloadShorts(DataInput dataInput, short[][] array, long offset, long length) Loads elements from a given data input, storing them in a given big-array fragment.static intloadShorts(DataInput dataInput, short[] array, int offset, int length) Loads elements from a given data input, storing them in a given array fragment.static short[]loadShorts(File file) Loads elements from a file given by aFileobject, storing them in a new array.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 big 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 short[]loadShorts(File file, ByteOrder byteOrder) Loads elements from a file given by aFileobject, using the given byte order, storing them in a new array.static intloadShorts(File file, ByteOrder byteOrder, short[] array) Loads elements from a file given by aFileobject, using the given byte order, storing them in a given array.static longloadShorts(File file, ByteOrder byteOrder, short[][] array) Loads elements from a file given by aFileobject, using the given byte order, storing them in a given big array.static longloadShorts(File file, ByteOrder byteOrder, short[][] array, long offset, long length) Loads elements from a file given by aFileobject, using the given byte order, storing them in a given big-array fragment.static intloadShorts(File file, ByteOrder byteOrder, short[] array, int offset, int length) Loads elements from a file given by aFileobject, using the given byte order, storing them in a given array fragment.static short[]loadShorts(CharSequence filename) Loads elements from a file given by a filename, storing them in a new array.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 big 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 short[]loadShorts(CharSequence filename, ByteOrder byteOrder) Loads elements from a file given by a filename, using the given byte order, storing them in a new array.static intloadShorts(CharSequence filename, ByteOrder byteOrder, short[] array) Loads elements from a file given by a filename, using the given byte order, storing them in a given array.static longloadShorts(CharSequence filename, ByteOrder byteOrder, short[][] array) Loads elements from a file given by a filename, using the given byte order, storing them in a given big array.static longloadShorts(CharSequence filename, ByteOrder byteOrder, short[][] array, long offset, long length) Loads elements from a file given by a filename, using the given byte order, storing them in a given big-array fragment.static intloadShorts(CharSequence filename, ByteOrder byteOrder, short[] array, int offset, int length) Loads elements from a file given by a filename, using the given byte order, storing them in a given array fragment.static intloadShorts(ReadableByteChannel channel, ByteOrder byteOrder, short[] array) Loads elements from a given readable channel, using the given byte order, storing them in a given array.static longloadShorts(ReadableByteChannel channel, ByteOrder byteOrder, short[][] array) Loads elements from a given readable channel, using the given byte order, storing them in a given big array.static longloadShorts(ReadableByteChannel channel, ByteOrder byteOrder, short[][] array, long offset, long length) Loads elements from a given readable channel, using the given byte order, storing them in a given big-array fragment.static intloadShorts(ReadableByteChannel channel, ByteOrder byteOrder, short[] array, int offset, int length) Loads elements from a given readable channel, using the given byte order, storing them in a given array fragment.static short[][]loadShortsBig(File file) Loads elements from a file given by aFileobject, storing them in a new big array.static short[][]loadShortsBig(File file, ByteOrder byteOrder) Loads elements from a file given by aFileobject, using the given byte order, storing them in a new big array.static short[][]loadShortsBig(CharSequence filename) Loads elements from a file given by a filename, storing them in a new big array.static short[][]loadShortsBig(CharSequence filename, ByteOrder byteOrder) Loads elements from a file given by a filename, using the given byte order, storing them in a new big array.static voidstoreBooleans(boolean[][] array, long offset, long length, DataOutput dataOutput) Stores an array fragment to a given data output.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, CharSequence filename) Stores a big-array fragment to a file given by a filename.static voidstoreBooleans(boolean[][] array, DataOutput dataOutput) Stores a big array to a given data output.static voidstoreBooleans(boolean[][] array, File file) Stores an array to a file given by aFileobject.static voidstoreBooleans(boolean[][] array, CharSequence filename) Stores a big array to a file given by a filename.static voidstoreBooleans(boolean[] array, int offset, int length, DataOutput dataOutput) Stores an array fragment to a given data output.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, CharSequence filename) Stores an array fragment to a file given by a filename.static voidstoreBooleans(boolean[] array, DataOutput dataOutput) Stores an array to a given data output.static voidstoreBooleans(boolean[] array, File file) Stores an array to a file given by aFileobject.static voidstoreBooleans(boolean[] array, CharSequence filename) Stores an array to a file given by a filename.static voidstoreBooleans(it.unimi.dsi.fastutil.booleans.BooleanIterator i, DataOutput dataOutput) Stores the element returned by an iterator to a given data output.static voidstoreBooleans(it.unimi.dsi.fastutil.booleans.BooleanIterator i, File file) Stores the element returned by an iterator to a file given by aFileobject.static voidstoreBooleans(it.unimi.dsi.fastutil.booleans.BooleanIterator i, CharSequence filename) Stores the element returned by an iterator to a file given by a filename.static voidstoreBytes(byte[][] array, long offset, long length, DataOutput dataOutput) Stores an array fragment to a given data output.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, OutputStream outputStream) Stores a big-array fragment to a given writable channel.static voidstoreBytes(byte[][] array, long offset, long length, CharSequence filename) Stores a big-array fragment to a file given by a filename.static voidstoreBytes(byte[][] array, long offset, long length, WritableByteChannel channel) Stores a big-array fragment to a given writable channel.static voidstoreBytes(byte[][] array, DataOutput dataOutput) Stores a big array to a given data output.static voidstoreBytes(byte[][] array, File file) Stores an array to a file given by aFileobject.static voidstoreBytes(byte[][] array, OutputStream outputStream) Stores a big array to a given writable channel.static voidstoreBytes(byte[][] array, CharSequence filename) Stores a big array to a file given by a filename.static voidstoreBytes(byte[][] array, WritableByteChannel channel) Stores a big array to a given writable channel.static voidstoreBytes(byte[] array, int offset, int length, DataOutput dataOutput) Stores an array fragment to a given data output.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, OutputStream outputStream) Stores an array fragment to a given writable channel.static voidstoreBytes(byte[] array, int offset, int length, CharSequence filename) Stores an array fragment to a file given by a filename.static voidstoreBytes(byte[] array, int offset, int length, WritableByteChannel channel) Stores an array fragment to a given writable channel.static voidstoreBytes(byte[] array, DataOutput dataOutput) Stores an array to a given data output.static voidstoreBytes(byte[] array, File file) Stores an array to a file given by aFileobject.static voidstoreBytes(byte[] array, OutputStream outputStream) Stores an array to a given writable channel.static voidstoreBytes(byte[] array, CharSequence filename) Stores an array to a file given by a filename.static voidstoreBytes(byte[] array, WritableByteChannel channel) Stores an array to a given writable channel.static voidstoreBytes(it.unimi.dsi.fastutil.bytes.ByteIterator i, DataOutput dataOutput) Stores the element returned by an iterator to a given data output.static voidstoreBytes(it.unimi.dsi.fastutil.bytes.ByteIterator i, File file) Stores the element returned by an iterator to a file given by aFileobject.static voidstoreBytes(it.unimi.dsi.fastutil.bytes.ByteIterator i, CharSequence filename) Stores the element returned by an iterator to a file given by a filename.static voidstoreChars(char[][] array, long offset, long length, DataOutput dataOutput) Stores an array fragment to a given data output.static voidstoreChars(char[][] array, long offset, long length, File file) Stores a big-array fragment to a file given by aFileobject.static voidstoreChars(char[][] array, long offset, long length, File file, ByteOrder byteOrder) Stores a big-array fragment to a file given by aFileobject, using the given byte order.static voidstoreChars(char[][] array, long offset, long length, CharSequence filename) Stores a big-array fragment to a file given by a filename.static voidstoreChars(char[][] array, long offset, long length, CharSequence filename, ByteOrder byteOrder) Stores a big-array fragment to a file given by a filename, using the given byte order.static voidstoreChars(char[][] array, long offset, long length, WritableByteChannel channel, ByteOrder byteOrder) Stores an array fragment to a given writable channel, using the given byte order.static voidstoreChars(char[][] array, DataOutput dataOutput) Stores a big array to a given data output.static voidstoreChars(char[][] array, File file) Stores an array to a file given by aFileobject.static voidstoreChars(char[][] array, File file, ByteOrder byteOrder) Stores an array to a file given by aFileobject, using the given byte order.static voidstoreChars(char[][] array, CharSequence filename) Stores a big array to a file given by a filename.static voidstoreChars(char[][] array, CharSequence filename, ByteOrder byteOrder) Stores a big array to a file given by a filename, using the given byte order.static voidstoreChars(char[][] array, WritableByteChannel channel, ByteOrder byteOrder) Stores a big array to a given writable channel, using the given byte order.static voidstoreChars(char[] array, int offset, int length, DataOutput dataOutput) Stores an array fragment to a given data output.static voidstoreChars(char[] array, int offset, int length, File file) Stores an array fragment to a file given by aFileobject.static voidstoreChars(char[] array, int offset, int length, File file, ByteOrder byteOrder) Stores an array fragment to a file given by aFileobject, using the given byte order.static voidstoreChars(char[] array, int offset, int length, CharSequence filename) Stores an array fragment to a file given by a filename.static voidstoreChars(char[] array, int offset, int length, CharSequence filename, ByteOrder byteOrder) Stores an array fragment to a file given by a filename, using the given byte order.static voidstoreChars(char[] array, int offset, int length, WritableByteChannel channel, ByteOrder byteOrder) Stores an array fragment to a given writable channel, using the given byte order.static voidstoreChars(char[] array, DataOutput dataOutput) Stores an array to a given data output.static voidstoreChars(char[] array, File file) Stores an array to a file given by aFileobject.static voidstoreChars(char[] array, File file, ByteOrder byteOrder) Stores an array to a file given by aFileobject, using the given byte order.static voidstoreChars(char[] array, CharSequence filename) Stores an array to a file given by a filename.static voidstoreChars(char[] array, CharSequence filename, ByteOrder byteOrder) Stores an array to a file given by a filename, using the given byte order.static voidstoreChars(char[] array, WritableByteChannel channel, ByteOrder byteOrder) Stores an array to a given writable channel, using the given byte order.static voidstoreChars(it.unimi.dsi.fastutil.chars.CharIterator i, DataOutput dataOutput) Stores the element returned by an iterator to a given data output.static voidstoreChars(it.unimi.dsi.fastutil.chars.CharIterator i, File file) Stores the element returned by an iterator to a file given by aFileobject.static voidstoreChars(it.unimi.dsi.fastutil.chars.CharIterator i, File file, ByteOrder byteOrder) Stores the element returned by an iterator to a file given by aFileobject, using the given byte order.static voidstoreChars(it.unimi.dsi.fastutil.chars.CharIterator i, CharSequence filename) Stores the element returned by an iterator to a file given by a filename.static voidstoreChars(it.unimi.dsi.fastutil.chars.CharIterator i, CharSequence filename, ByteOrder byteOrder) Stores the element returned by an iterator to a file given by a filename, using the given byte order.static voidstoreChars(it.unimi.dsi.fastutil.chars.CharIterator i, WritableByteChannel channel, ByteOrder byteOrder) Stores the element returned by an iterator to a given writable channel, using the given byte order.static voidstoreDoubles(double[][] array, long offset, long length, DataOutput dataOutput) Stores an array fragment to a given data output.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, File file, ByteOrder byteOrder) Stores a big-array fragment to a file given by aFileobject, using the given byte order.static voidstoreDoubles(double[][] array, long offset, long length, CharSequence filename) Stores a big-array fragment to a file given by a filename.static voidstoreDoubles(double[][] array, long offset, long length, CharSequence filename, ByteOrder byteOrder) Stores a big-array fragment to a file given by a filename, using the given byte order.static voidstoreDoubles(double[][] array, long offset, long length, WritableByteChannel channel, ByteOrder byteOrder) Stores an array fragment to a given writable channel, using the given byte order.static voidstoreDoubles(double[][] array, DataOutput dataOutput) Stores a big array to a given data output.static voidstoreDoubles(double[][] array, File file) Stores an array to a file given by aFileobject.static voidstoreDoubles(double[][] array, File file, ByteOrder byteOrder) Stores an array to a file given by aFileobject, using the given byte order.static voidstoreDoubles(double[][] array, CharSequence filename) Stores a big array to a file given by a filename.static voidstoreDoubles(double[][] array, CharSequence filename, ByteOrder byteOrder) Stores a big array to a file given by a filename, using the given byte order.static voidstoreDoubles(double[][] array, WritableByteChannel channel, ByteOrder byteOrder) Stores a big array to a given writable channel, using the given byte order.static voidstoreDoubles(double[] array, int offset, int length, DataOutput dataOutput) Stores an array fragment to a given data output.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, File file, ByteOrder byteOrder) Stores an array fragment to a file given by aFileobject, using the given byte order.static voidstoreDoubles(double[] array, int offset, int length, CharSequence filename) Stores an array fragment to a file given by a filename.static voidstoreDoubles(double[] array, int offset, int length, CharSequence filename, ByteOrder byteOrder) Stores an array fragment to a file given by a filename, using the given byte order.static voidstoreDoubles(double[] array, int offset, int length, WritableByteChannel channel, ByteOrder byteOrder) Stores an array fragment to a given writable channel, using the given byte order.static voidstoreDoubles(double[] array, DataOutput dataOutput) Stores an array to a given data output.static voidstoreDoubles(double[] array, File file) Stores an array to a file given by aFileobject.static voidstoreDoubles(double[] array, File file, ByteOrder byteOrder) Stores an array to a file given by aFileobject, using the given byte order.static voidstoreDoubles(double[] array, CharSequence filename) Stores an array to a file given by a filename.static voidstoreDoubles(double[] array, CharSequence filename, ByteOrder byteOrder) Stores an array to a file given by a filename, using the given byte order.static voidstoreDoubles(double[] array, WritableByteChannel channel, ByteOrder byteOrder) Stores an array to a given writable channel, using the given byte order.static voidstoreDoubles(it.unimi.dsi.fastutil.doubles.DoubleIterator i, DataOutput dataOutput) Stores the element returned by an iterator to a given data output.static voidstoreDoubles(it.unimi.dsi.fastutil.doubles.DoubleIterator i, File file) Stores the element returned by an iterator to a file given by aFileobject.static voidstoreDoubles(it.unimi.dsi.fastutil.doubles.DoubleIterator i, File file, ByteOrder byteOrder) Stores the element returned by an iterator to a file given by aFileobject, using the given byte order.static voidstoreDoubles(it.unimi.dsi.fastutil.doubles.DoubleIterator i, CharSequence filename) Stores the element returned by an iterator to a file given by a filename.static voidstoreDoubles(it.unimi.dsi.fastutil.doubles.DoubleIterator i, CharSequence filename, ByteOrder byteOrder) Stores the element returned by an iterator to a file given by a filename, using the given byte order.static voidstoreDoubles(it.unimi.dsi.fastutil.doubles.DoubleIterator i, WritableByteChannel channel, ByteOrder byteOrder) Stores the element returned by an iterator to a given writable channel, using the given byte order.static voidstoreFloats(float[][] array, long offset, long length, DataOutput dataOutput) Stores an array fragment to a given data output.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, File file, ByteOrder byteOrder) Stores a big-array fragment to a file given by aFileobject, using the given byte order.static voidstoreFloats(float[][] array, long offset, long length, CharSequence filename) Stores a big-array fragment to a file given by a filename.static voidstoreFloats(float[][] array, long offset, long length, CharSequence filename, ByteOrder byteOrder) Stores a big-array fragment to a file given by a filename, using the given byte order.static voidstoreFloats(float[][] array, long offset, long length, WritableByteChannel channel, ByteOrder byteOrder) Stores an array fragment to a given writable channel, using the given byte order.static voidstoreFloats(float[][] array, DataOutput dataOutput) Stores a big array to a given data output.static voidstoreFloats(float[][] array, File file) Stores an array to a file given by aFileobject.static voidstoreFloats(float[][] array, File file, ByteOrder byteOrder) Stores an array to a file given by aFileobject, using the given byte order.static voidstoreFloats(float[][] array, CharSequence filename) Stores a big array to a file given by a filename.static voidstoreFloats(float[][] array, CharSequence filename, ByteOrder byteOrder) Stores a big array to a file given by a filename, using the given byte order.static voidstoreFloats(float[][] array, WritableByteChannel channel, ByteOrder byteOrder) Stores a big array to a given writable channel, using the given byte order.static voidstoreFloats(float[] array, int offset, int length, DataOutput dataOutput) Stores an array fragment to a given data output.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, File file, ByteOrder byteOrder) Stores an array fragment to a file given by aFileobject, using the given byte order.static voidstoreFloats(float[] array, int offset, int length, CharSequence filename) Stores an array fragment to a file given by a filename.static voidstoreFloats(float[] array, int offset, int length, CharSequence filename, ByteOrder byteOrder) Stores an array fragment to a file given by a filename, using the given byte order.static voidstoreFloats(float[] array, int offset, int length, WritableByteChannel channel, ByteOrder byteOrder) Stores an array fragment to a given writable channel, using the given byte order.static voidstoreFloats(float[] array, DataOutput dataOutput) Stores an array to a given data output.static voidstoreFloats(float[] array, File file) Stores an array to a file given by aFileobject.static voidstoreFloats(float[] array, File file, ByteOrder byteOrder) Stores an array to a file given by aFileobject, using the given byte order.static voidstoreFloats(float[] array, CharSequence filename) Stores an array to a file given by a filename.static voidstoreFloats(float[] array, CharSequence filename, ByteOrder byteOrder) Stores an array to a file given by a filename, using the given byte order.static voidstoreFloats(float[] array, WritableByteChannel channel, ByteOrder byteOrder) Stores an array to a given writable channel, using the given byte order.static voidstoreFloats(it.unimi.dsi.fastutil.floats.FloatIterator i, DataOutput dataOutput) Stores the element returned by an iterator to a given data output.static voidstoreFloats(it.unimi.dsi.fastutil.floats.FloatIterator i, File file) Stores the element returned by an iterator to a file given by aFileobject.static voidstoreFloats(it.unimi.dsi.fastutil.floats.FloatIterator i, File file, ByteOrder byteOrder) Stores the element returned by an iterator to a file given by aFileobject, using the given byte order.static voidstoreFloats(it.unimi.dsi.fastutil.floats.FloatIterator i, CharSequence filename) Stores the element returned by an iterator to a file given by a filename.static voidstoreFloats(it.unimi.dsi.fastutil.floats.FloatIterator i, CharSequence filename, ByteOrder byteOrder) Stores the element returned by an iterator to a file given by a filename, using the given byte order.static voidstoreFloats(it.unimi.dsi.fastutil.floats.FloatIterator i, WritableByteChannel channel, ByteOrder byteOrder) Stores the element returned by an iterator to a given writable channel, using the given byte order.static voidstoreInts(int[][] array, long offset, long length, DataOutput dataOutput) Stores an array fragment to a given data output.static voidStores a big-array fragment to a file given by aFileobject.static voidStores a big-array fragment to a file given by aFileobject, using the given byte order.static voidstoreInts(int[][] array, long offset, long length, CharSequence filename) Stores a big-array fragment to a file given by a filename.static voidstoreInts(int[][] array, long offset, long length, CharSequence filename, ByteOrder byteOrder) Stores a big-array fragment to a file given by a filename, using the given byte order.static voidstoreInts(int[][] array, long offset, long length, WritableByteChannel channel, ByteOrder byteOrder) Stores an array fragment to a given writable channel, using the given byte order.static voidstoreInts(int[][] array, DataOutput dataOutput) Stores a big array to a given data output.static voidStores an array to a file given by aFileobject.static voidStores an array to a file given by aFileobject, using the given byte order.static voidstoreInts(int[][] array, CharSequence filename) Stores a big array to a file given by a filename.static voidstoreInts(int[][] array, CharSequence filename, ByteOrder byteOrder) Stores a big array to a file given by a filename, using the given byte order.static voidstoreInts(int[][] array, WritableByteChannel channel, ByteOrder byteOrder) Stores a big array to a given writable channel, using the given byte order.static voidstoreInts(int[] array, int offset, int length, DataOutput dataOutput) Stores an array fragment to a given data output.static voidStores an array fragment to a file given by aFileobject.static voidStores an array fragment to a file given by aFileobject, using the given byte order.static voidstoreInts(int[] array, int offset, int length, CharSequence filename) Stores an array fragment to a file given by a filename.static voidstoreInts(int[] array, int offset, int length, CharSequence filename, ByteOrder byteOrder) Stores an array fragment to a file given by a filename, using the given byte order.static voidstoreInts(int[] array, int offset, int length, WritableByteChannel channel, ByteOrder byteOrder) Stores an array fragment to a given writable channel, using the given byte order.static voidstoreInts(int[] array, DataOutput dataOutput) Stores an array to a given data output.static voidStores an array to a file given by aFileobject.static voidStores an array to a file given by aFileobject, using the given byte order.static voidstoreInts(int[] array, CharSequence filename) Stores an array to a file given by a filename.static voidstoreInts(int[] array, CharSequence filename, ByteOrder byteOrder) Stores an array to a file given by a filename, using the given byte order.static voidstoreInts(int[] array, WritableByteChannel channel, ByteOrder byteOrder) Stores an array to a given writable channel, using the given byte order.static voidstoreInts(it.unimi.dsi.fastutil.ints.IntIterator i, DataOutput dataOutput) Stores the element returned by an iterator to a given data output.static voidStores the element returned by an iterator to a file given by aFileobject.static voidStores the element returned by an iterator to a file given by aFileobject, using the given byte order.static voidstoreInts(it.unimi.dsi.fastutil.ints.IntIterator i, CharSequence filename) Stores the element returned by an iterator to a file given by a filename.static voidstoreInts(it.unimi.dsi.fastutil.ints.IntIterator i, CharSequence filename, ByteOrder byteOrder) Stores the element returned by an iterator to a file given by a filename, using the given byte order.static voidstoreInts(it.unimi.dsi.fastutil.ints.IntIterator i, WritableByteChannel channel, ByteOrder byteOrder) Stores the element returned by an iterator to a given writable channel, using the given byte order.static voidstoreLongs(long[][] array, long offset, long length, DataOutput dataOutput) Stores an array fragment to a given data output.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, File file, ByteOrder byteOrder) Stores a big-array fragment to a file given by aFileobject, using the given byte order.static voidstoreLongs(long[][] array, long offset, long length, CharSequence filename) Stores a big-array fragment to a file given by a filename.static voidstoreLongs(long[][] array, long offset, long length, CharSequence filename, ByteOrder byteOrder) Stores a big-array fragment to a file given by a filename, using the given byte order.static voidstoreLongs(long[][] array, long offset, long length, WritableByteChannel channel, ByteOrder byteOrder) Stores an array fragment to a given writable channel, using the given byte order.static voidstoreLongs(long[][] array, DataOutput dataOutput) Stores a big array to a given data output.static voidstoreLongs(long[][] array, File file) Stores an array to a file given by aFileobject.static voidstoreLongs(long[][] array, File file, ByteOrder byteOrder) Stores an array to a file given by aFileobject, using the given byte order.static voidstoreLongs(long[][] array, CharSequence filename) Stores a big array to a file given by a filename.static voidstoreLongs(long[][] array, CharSequence filename, ByteOrder byteOrder) Stores a big array to a file given by a filename, using the given byte order.static voidstoreLongs(long[][] array, WritableByteChannel channel, ByteOrder byteOrder) Stores a big array to a given writable channel, using the given byte order.static voidstoreLongs(long[] array, int offset, int length, DataOutput dataOutput) Stores an array fragment to a given data output.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, File file, ByteOrder byteOrder) Stores an array fragment to a file given by aFileobject, using the given byte order.static voidstoreLongs(long[] array, int offset, int length, CharSequence filename) Stores an array fragment to a file given by a filename.static voidstoreLongs(long[] array, int offset, int length, CharSequence filename, ByteOrder byteOrder) Stores an array fragment to a file given by a filename, using the given byte order.static voidstoreLongs(long[] array, int offset, int length, WritableByteChannel channel, ByteOrder byteOrder) Stores an array fragment to a given writable channel, using the given byte order.static voidstoreLongs(long[] array, DataOutput dataOutput) Stores an array to a given data output.static voidstoreLongs(long[] array, File file) Stores an array to a file given by aFileobject.static voidstoreLongs(long[] array, File file, ByteOrder byteOrder) Stores an array to a file given by aFileobject, using the given byte order.static voidstoreLongs(long[] array, CharSequence filename) Stores an array to a file given by a filename.static voidstoreLongs(long[] array, CharSequence filename, ByteOrder byteOrder) Stores an array to a file given by a filename, using the given byte order.static voidstoreLongs(long[] array, WritableByteChannel channel, ByteOrder byteOrder) Stores an array to a given writable channel, using the given byte order.static voidstoreLongs(it.unimi.dsi.fastutil.longs.LongIterator i, DataOutput dataOutput) Stores the element returned by an iterator to a given data output.static voidstoreLongs(it.unimi.dsi.fastutil.longs.LongIterator i, File file) Stores the element returned by an iterator to a file given by aFileobject.static voidstoreLongs(it.unimi.dsi.fastutil.longs.LongIterator i, File file, ByteOrder byteOrder) Stores the element returned by an iterator to a file given by aFileobject, using the given byte order.static voidstoreLongs(it.unimi.dsi.fastutil.longs.LongIterator i, CharSequence filename) Stores the element returned by an iterator to a file given by a filename.static voidstoreLongs(it.unimi.dsi.fastutil.longs.LongIterator i, CharSequence filename, ByteOrder byteOrder) Stores the element returned by an iterator to a file given by a filename, using the given byte order.static voidstoreLongs(it.unimi.dsi.fastutil.longs.LongIterator i, WritableByteChannel channel, ByteOrder byteOrder) Stores the element returned by an iterator to a given writable channel, using the given byte order.static voidstoreObject(Object o, File file) Stores an object in a file given by aFileobject.static voidstoreObject(Object o, OutputStream s) Stores an object in a given output stream.static voidstoreObject(Object o, CharSequence filename) Stores an object in a file given by a filename.static voidstoreShorts(short[][] array, long offset, long length, DataOutput dataOutput) Stores an array fragment to a given data output.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, File file, ByteOrder byteOrder) Stores a big-array fragment to a file given by aFileobject, using the given byte order.static voidstoreShorts(short[][] array, long offset, long length, CharSequence filename) Stores a big-array fragment to a file given by a filename.static voidstoreShorts(short[][] array, long offset, long length, CharSequence filename, ByteOrder byteOrder) Stores a big-array fragment to a file given by a filename, using the given byte order.static voidstoreShorts(short[][] array, long offset, long length, WritableByteChannel channel, ByteOrder byteOrder) Stores an array fragment to a given writable channel, using the given byte order.static voidstoreShorts(short[][] array, DataOutput dataOutput) Stores a big array to a given data output.static voidstoreShorts(short[][] array, File file) Stores an array to a file given by aFileobject.static voidstoreShorts(short[][] array, File file, ByteOrder byteOrder) Stores an array to a file given by aFileobject, using the given byte order.static voidstoreShorts(short[][] array, CharSequence filename) Stores a big array to a file given by a filename.static voidstoreShorts(short[][] array, CharSequence filename, ByteOrder byteOrder) Stores a big array to a file given by a filename, using the given byte order.static voidstoreShorts(short[][] array, WritableByteChannel channel, ByteOrder byteOrder) Stores a big array to a given writable channel, using the given byte order.static voidstoreShorts(short[] array, int offset, int length, DataOutput dataOutput) Stores an array fragment to a given data output.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, File file, ByteOrder byteOrder) Stores an array fragment to a file given by aFileobject, using the given byte order.static voidstoreShorts(short[] array, int offset, int length, CharSequence filename) Stores an array fragment to a file given by a filename.static voidstoreShorts(short[] array, int offset, int length, CharSequence filename, ByteOrder byteOrder) Stores an array fragment to a file given by a filename, using the given byte order.static voidstoreShorts(short[] array, int offset, int length, WritableByteChannel channel, ByteOrder byteOrder) Stores an array fragment to a given writable channel, using the given byte order.static voidstoreShorts(short[] array, DataOutput dataOutput) Stores an array to a given data output.static voidstoreShorts(short[] array, File file) Stores an array to a file given by aFileobject.static voidstoreShorts(short[] array, File file, ByteOrder byteOrder) Stores an array to a file given by aFileobject, using the given byte order.static voidstoreShorts(short[] array, CharSequence filename) Stores an array to a file given by a filename.static voidstoreShorts(short[] array, CharSequence filename, ByteOrder byteOrder) Stores an array to a file given by a filename, using the given byte order.static voidstoreShorts(short[] array, WritableByteChannel channel, ByteOrder byteOrder) Stores an array to a given writable channel, using the given byte order.static voidstoreShorts(it.unimi.dsi.fastutil.shorts.ShortIterator i, DataOutput dataOutput) Stores the element returned by an iterator to a given data output.static voidstoreShorts(it.unimi.dsi.fastutil.shorts.ShortIterator i, File file) Stores the element returned by an iterator to a file given by aFileobject.static voidstoreShorts(it.unimi.dsi.fastutil.shorts.ShortIterator i, File file, ByteOrder byteOrder) Stores the element returned by an iterator to a file given by aFileobject, using the given byte order.static voidstoreShorts(it.unimi.dsi.fastutil.shorts.ShortIterator i, CharSequence filename) Stores the element returned by an iterator to a file given by a filename.static voidstoreShorts(it.unimi.dsi.fastutil.shorts.ShortIterator i, CharSequence filename, ByteOrder byteOrder) Stores the element returned by an iterator to a file given by a filename, using the given byte order.static voidstoreShorts(it.unimi.dsi.fastutil.shorts.ShortIterator i, WritableByteChannel channel, ByteOrder byteOrder) Stores the element returned by an iterator to a given writable channel, using the given byte order.
-
Field Details
-
BUFFER_SIZE
public static int BUFFER_SIZEThe size used withByteBuffer.allocateDirect(int).
-
-
Method Details
-
storeObject
Stores an object in a file given by aFileobject.- Parameters:
o- an object.file- a file.- Throws:
IOException- See Also:
-
storeObject
Stores an object in a file given by a filename.- Parameters:
o- an object.filename- a filename.- Throws:
IOException- See Also:
-
loadObject
Loads an object from a file given by aFileobject.- Parameters:
file- a file.- Returns:
- the object stored under the given file.
- Throws:
IOExceptionClassNotFoundException- See Also:
-
loadObject
Loads an object from a file given by a filename.- Parameters:
filename- a filename.- Returns:
- the object stored under the given filename.
- Throws:
IOExceptionClassNotFoundException- See Also:
-
storeObject
Stores an object in a given output stream.This method buffers
s, and flushes all wrappers after callingwriteObject(), but does not closes.- Parameters:
o- an object.s- an output stream.- Throws:
IOException- See Also:
-
loadObject
Loads an object from a given input stream.Warning: this method buffers the input stream. As a consequence, subsequent reads from the same stream may not give the desired results, as bytes may have been read by the internal buffer, but not used by
readObject(). This is a feature, as this method is targeted at one-shot reading from streams, e.g., reading exactly one object fromSystem.in.- Parameters:
s- an input stream.- Returns:
- the object read from the given input stream.
- Throws:
IOExceptionClassNotFoundException- See Also:
-
loadBooleans
public static int loadBooleans(DataInput dataInput, boolean[] array, int offset, int length) throws IOException Loads elements from a given data input, storing them in a given array fragment.- Parameters:
dataInput- a data input.array- an array which will be filled with data fromdataInput.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
dataInput(it might be less thanlengthifdataInputends). - Throws:
IOException
-
loadBooleans
Loads elements from a given data input, storing them in a given array.- Parameters:
dataInput- a data input.array- an array which will be filled with data fromdataInput.- Returns:
- the number of elements actually read from
dataInput(it might be less than the array length ifdataInputends). - 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
-
loadBooleans
Loads elements from a file given by aFileobject, storing them in a new array.Note that the length of the returned array will be computed dividing the specified file size by the number of bytes used to represent each element.
- Parameters:
file- a file.- Returns:
- an array filled with the content of the specified file.
- Throws:
IOException
-
loadBooleans
Loads elements from a file given by a filename, storing them in a new array.Note that the length of the returned array will be computed dividing the specified file size by the number of bytes used to represent each element.
- Parameters:
filename- a filename.- Returns:
- an array filled with the content of the specified file.
- Throws:
IOException
-
storeBooleans
public static void storeBooleans(boolean[] array, int offset, int length, DataOutput dataOutput) throws IOException Stores an array fragment to a given data output.- Parameters:
array- an array whose elements will be written todataOutput.offset- the index of the first element ofarrayto be written.length- the number of elements ofarrayto be written.dataOutput- a data output.- Throws:
IOException
-
storeBooleans
Stores an array to a given data output.- Parameters:
array- an array whose elements will be written todataOutput.dataOutput- a data output.- Throws:
IOException
-
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 tofile.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 filename.- Parameters:
array- an array whose elements will be written to the filefilename.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 tofile.file- a file.- Throws:
IOException
-
storeBooleans
Stores an array to a file given by a filename.- Parameters:
array- an array whose elements will be written to the filefilename.filename- a filename.- Throws:
IOException
-
loadBooleans
public static long loadBooleans(DataInput dataInput, boolean[][] array, long offset, long length) throws IOException Loads elements from a given data input, storing them in a given big-array fragment.- Parameters:
dataInput- a data input.array- a big array which will be filled with data fromdataInput.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
dataInput(it might be less thanlengthifdataInputends). - Throws:
IOException
-
loadBooleans
Loads elements from a given data input, storing them in a given big array.- Parameters:
dataInput- a data input.array- a big array which will be filled with data fromdataInput.- Returns:
- the number of elements actually read from
dataInput(it might be less than the array length ifdataInputends). - 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- 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 big 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 big 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
-
loadBooleansBig
Loads elements from a file given by aFileobject, storing them in a new big array.Note that the length of the returned big array will be computed dividing the specified file size by the number of bytes used to represent each element.
- Parameters:
file- a file.- Returns:
- a big array filled with the content of the specified file.
- Throws:
IOException
-
loadBooleansBig
Loads elements from a file given by a filename, storing them in a new big array.Note that the length of the returned big array will be computed dividing the specified file size by the number of bytes used to represent each element.
- Parameters:
filename- a filename.- Returns:
- a big array filled with the content of the specified file.
- Throws:
IOException
-
storeBooleans
public static void storeBooleans(boolean[][] array, long offset, long length, DataOutput dataOutput) throws IOException Stores an array fragment to a given data output.- Parameters:
array- an array whose elements will be written todataOutput.offset- the index of the first element ofarrayto be written.length- the number of elements ofarrayto be written.dataOutput- a data output.- Throws:
IOException
-
storeBooleans
Stores a big array to a given data output.- Parameters:
array- a big array whose elements will be written todataOutput.dataOutput- a data output.- Throws:
IOException
-
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 tofile.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 filename.- Parameters:
array- a big array whose elements will be written to the filefilename.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 tofile.file- a file.- Throws:
IOException
-
storeBooleans
Stores a big array to a file given by a filename.- Parameters:
array- a big array whose elements will be written to the filefilename.filename- a filename.- Throws:
IOException
-
storeBooleans
public static void storeBooleans(it.unimi.dsi.fastutil.booleans.BooleanIterator i, DataOutput dataOutput) throws IOException Stores the element returned by an iterator to a given data output.- Parameters:
i- an iterator whose output will be written todataOutput.dataOutput- a filename.- Throws:
IOException
-
storeBooleans
public static void storeBooleans(it.unimi.dsi.fastutil.booleans.BooleanIterator i, File file) throws IOException Stores the element returned by an iterator to a file given by aFileobject.- Parameters:
i- an iterator whose output will be written tofile.file- a file.- Throws:
IOException
-
storeBooleans
public static void storeBooleans(it.unimi.dsi.fastutil.booleans.BooleanIterator i, CharSequence filename) throws IOException Stores the element returned by an iterator to a file given by a filename.- Parameters:
i- an iterator whose output will be written to the filefilename.filename- a filename.- Throws:
IOException
-
asBooleanIterator
Wraps the given data input stream into an iterator.- Parameters:
dataInput- a data input.
-
asBooleanIterator
public static it.unimi.dsi.fastutil.booleans.BooleanIterator asBooleanIterator(File file) throws IOException Wraps a file given by aFileobject into an iterator.- Parameters:
file- a file.- Throws:
IOException
-
asBooleanIterator
public static it.unimi.dsi.fastutil.booleans.BooleanIterator asBooleanIterator(CharSequence filename) throws IOException Wraps a file given by a filename 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
public static it.unimi.dsi.fastutil.booleans.BooleanIterable asBooleanIterable(CharSequence filename) Wraps a file given by a filename into an iterable object.- Parameters:
filename- a filename.
-
loadBytes
public static int loadBytes(InputStream inputStream, byte[] array, int offset, int length) throws IOException Loads bytes from a given input stream, storing them in a given array fragment.Note that this method is going to be significantly faster than
loadBytes(DataInput,byte[],int,int)as it usesInputStream's bulk-read methods.- Parameters:
inputStream- an input stream.array- an array which will be filled with data frominputStream.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
inputStream(it might be less thanlengthifinputStreamends). - Throws:
IOException
-
loadBytes
Loads bytes from a given input stream, storing them in a given array.Note that this method is going to be significantly faster than
loadBytes(DataInput,byte[])as it usesInputStream's bulk-read methods.- Parameters:
inputStream- an input stream.array- an array which will be filled with data frominputStream.- Returns:
- the number of elements actually read from
inputStream(it might be less than the array length ifinputStreamends). - Throws:
IOException
-
storeBytes
public static void storeBytes(byte[] array, int offset, int length, OutputStream outputStream) throws IOException Stores an array fragment to a given writable channel.Note that this method is going to be significantly faster than
storeBytes(byte[],int,int,DataOutput)as it usesOutputStream's bulk-write methods.- Parameters:
array- an array whose elements will be written tooutputStream.offset- the index of the first element ofarrayto be written.length- the number of elements ofarrayto be written.outputStream- an output stream.- Throws:
IOException
-
storeBytes
Stores an array to a given writable channel.Note that this method is going to be significantly faster than
storeBytes(byte[],DataOutput)as it usesOutputStream's bulk-write methods.- Parameters:
array- an array whose elements will be written tooutputStream.outputStream- an output stream.- Throws:
IOException
-
loadBytes
public static long loadBytes(InputStream inputStream, byte[][] array, long offset, long length) throws IOException Loads bytes from a given readable channel, storing them in a given big-array fragment.Note that this method is going to be significantly faster than
loadBytes(DataInput,byte[][],long,long)as it usesInputStream's bulk-read methods.- Parameters:
inputStream- an input stream.array- a big array which will be filled with data frominputStream.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
inputStream(it might be less thanlengthifinputStreamends). - Throws:
IOException
-
loadBytes
Loads bytes from a given readable channel, storing them in a given big array.Note that this method is going to be significantly faster than
loadBytes(DataInput,byte[][])as it usesInputStream's bulk-read methods.- Parameters:
inputStream- an input stream.array- a big array which will be filled with data frominputStream.- Returns:
- the number of elements actually read from
inputStream(it might be less than the array length ifinputStreamends). - Throws:
IOException
-
storeBytes
public static void storeBytes(byte[][] array, long offset, long length, OutputStream outputStream) throws IOException Stores a big-array fragment to a given writable channel.Note that this method is going to be significantly faster than
storeBytes(byte[][],long,long,DataOutput)as it usesOutputStream's bulk-write methods.- Parameters:
array- a big array whose elements will be written tooutputStream.offset- the index of the first element ofarrayto be written.length- the number of elements ofarrayto be written.outputStream- an output stream.- Throws:
IOException
-
storeBytes
Stores a big array to a given writable channel.Note that this method is going to be significantly faster than
storeBytes(byte[][],DataOutput)as it usesOutputStream's bulk-write methods.- Parameters:
array- a big array whose elements will be written tooutputStream.outputStream- an output stream.- Throws:
IOException
-
loadBytes
public static int loadBytes(ReadableByteChannel channel, byte[] array, int offset, int length) throws IOException Loads bytes from a given readable channel, storing them in a given array fragment.Note that this method is going to be significantly faster than
loadBytes(DataInput,byte[],int,int)as it usesReadableByteChannel's bulk-read methods.- Parameters:
channel- a readable channel.array- an array which will be filled with data fromchannel.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
channel(it might be less thanlengthifchannelends). - Throws:
IOException
-
loadBytes
Loads bytes from a given readable channel, storing them in a given array.Note that this method is going to be significantly faster than
loadBytes(DataInput,byte[],int,int)as it usesReadableByteChannel's bulk-read methods.- Parameters:
channel- a readable channel.array- an array which will be filled with data fromchannel.- Returns:
- the number of elements actually read from
channel(it might be less than the array length ifchannelends). - Throws:
IOException
-
storeBytes
public static void storeBytes(byte[] array, int offset, int length, WritableByteChannel channel) throws IOException Stores an array fragment to a given writable channel.Note that this method is going to be significantly faster than
loadBytes(DataInput,byte[],int,int)as it usesWritableByteChannel's bulk-write methods.- Parameters:
array- an array whose elements will be written tochannel.offset- the index of the first element ofarrayto be written.length- the number of elements ofarrayto be written.channel- a writable channel.- Throws:
IOException
-
storeBytes
Stores an array to a given writable channel.Note that this method is going to be significantly faster than
loadBytes(DataInput,byte[],int,int)as it usesWritableByteChannel's bulk-write methods.- Parameters:
array- an array whose elements will be written tochannel.channel- a writable channel.- Throws:
IOException
-
loadBytes
public static long loadBytes(ReadableByteChannel channel, byte[][] array, long offset, long length) throws IOException Loads bytes from a given readable channel, storing them in a given big-array fragment.Note that this method is going to be significantly faster than
loadBytes(DataInput,byte[],int,int)as it usesReadableByteChannel's bulk-read methods.- Parameters:
channel- a readable channel.array- a big array which will be filled with data fromchannel.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
channel(it might be less thanlengthifchannelends). - Throws:
IOException
-
loadBytes
Loads bytes from a given readable channel, storing them in a given big array.Note that this method is going to be significantly faster than
loadBytes(DataInput,byte[],int,int)as it usesReadableByteChannel's bulk-read methods.- Parameters:
channel- a readable channel.array- a big array which will be filled with data fromchannel.- Returns:
- the number of elements actually read from
channel(it might be less than the array length ifchannelends). - Throws:
IOException
-
storeBytes
public static void storeBytes(byte[][] array, long offset, long length, WritableByteChannel channel) throws IOException Stores a big-array fragment to a given writable channel.Note that this method is going to be significantly faster than
loadBytes(DataInput,byte[],int,int)as it usesWritableByteChannel's bulk-write methods.- Parameters:
array- a big array whose elements will be written tochannel.offset- the index of the first element ofarrayto be written.length- the number of elements ofarrayto be written.channel- a writable channel.- Throws:
IOException
-
storeBytes
Stores a big array to a given writable channel.Note that this method is going to be significantly faster than
loadBytes(DataInput,byte[],int,int)as it usesWritableByteChannel's bulk-write methods.- Parameters:
array- a big array whose elements will be written tochannel.channel- a writable channel.- Throws:
IOException
-
loadBytes
public static int loadBytes(DataInput dataInput, byte[] array, int offset, int length) throws IOException Loads elements from a given data input, storing them in a given array fragment.- Parameters:
dataInput- a data input.array- an array which will be filled with data fromdataInput.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
dataInput(it might be less thanlengthifdataInputends). - Throws:
IOException
-
loadBytes
Loads elements from a given data input, storing them in a given array.- Parameters:
dataInput- a data input.array- an array which will be filled with data fromdataInput.- Returns:
- the number of elements actually read from
dataInput(it might be less than the array length ifdataInputends). - 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
-
loadBytes
Loads elements from a file given by aFileobject, storing them in a new array.Note that the length of the returned array will be computed dividing the specified file size by the number of bytes used to represent each element.
- Parameters:
file- a file.- Returns:
- an array filled with the content of the specified file.
- Throws:
IOException
-
loadBytes
Loads elements from a file given by a filename, storing them in a new array.Note that the length of the returned array will be computed dividing the specified file size by the number of bytes used to represent each element.
- Parameters:
filename- a filename.- Returns:
- an array filled with the content of the specified file.
- Throws:
IOException
-
storeBytes
public static void storeBytes(byte[] array, int offset, int length, DataOutput dataOutput) throws IOException Stores an array fragment to a given data output.- Parameters:
array- an array whose elements will be written todataOutput.offset- the index of the first element ofarrayto be written.length- the number of elements ofarrayto be written.dataOutput- a data output.- Throws:
IOException
-
storeBytes
Stores an array to a given data output.- Parameters:
array- an array whose elements will be written todataOutput.dataOutput- a data output.- Throws:
IOException
-
storeBytes
Stores an array fragment to a file given by aFileobject.- Parameters:
array- an array whose elements will be written tofile.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 filename.- Parameters:
array- an array whose elements will be written to the filefilename.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 tofile.file- a file.- Throws:
IOException
-
storeBytes
Stores an array to a file given by a filename.- Parameters:
array- an array whose elements will be written to the filefilename.filename- a filename.- Throws:
IOException
-
loadBytes
public static long loadBytes(DataInput dataInput, byte[][] array, long offset, long length) throws IOException Loads elements from a given data input, storing them in a given big-array fragment.- Parameters:
dataInput- a data input.array- a big array which will be filled with data fromdataInput.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
dataInput(it might be less thanlengthifdataInputends). - Throws:
IOException
-
loadBytes
Loads elements from a given data input, storing them in a given big array.- Parameters:
dataInput- a data input.array- a big array which will be filled with data fromdataInput.- Returns:
- the number of elements actually read from
dataInput(it might be less than the array length ifdataInputends). - 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- 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 big 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 big 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
-
loadBytesBig
Loads elements from a file given by aFileobject, storing them in a new big array.Note that the length of the returned big array will be computed dividing the specified file size by the number of bytes used to represent each element.
- Parameters:
file- a file.- Returns:
- a big array filled with the content of the specified file.
- Throws:
IOException
-
loadBytesBig
Loads elements from a file given by a filename, storing them in a new big array.Note that the length of the returned big array will be computed dividing the specified file size by the number of bytes used to represent each element.
- Parameters:
filename- a filename.- Returns:
- a big array filled with the content of the specified file.
- Throws:
IOException
-
storeBytes
public static void storeBytes(byte[][] array, long offset, long length, DataOutput dataOutput) throws IOException Stores an array fragment to a given data output.- Parameters:
array- an array whose elements will be written todataOutput.offset- the index of the first element ofarrayto be written.length- the number of elements ofarrayto be written.dataOutput- a data output.- Throws:
IOException
-
storeBytes
Stores a big array to a given data output.- Parameters:
array- a big array whose elements will be written todataOutput.dataOutput- a data output.- Throws:
IOException
-
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 tofile.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 filename.- Parameters:
array- a big array whose elements will be written to the filefilename.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 tofile.file- a file.- Throws:
IOException
-
storeBytes
Stores a big array to a file given by a filename.- Parameters:
array- a big array whose elements will be written to the filefilename.filename- a filename.- Throws:
IOException
-
storeBytes
public static void storeBytes(it.unimi.dsi.fastutil.bytes.ByteIterator i, DataOutput dataOutput) throws IOException Stores the element returned by an iterator to a given data output.- Parameters:
i- an iterator whose output will be written todataOutput.dataOutput- a filename.- Throws:
IOException
-
storeBytes
public static void storeBytes(it.unimi.dsi.fastutil.bytes.ByteIterator i, File file) throws IOException Stores the element returned by an iterator to a file given by aFileobject.- Parameters:
i- an iterator whose output will be written tofile.file- a file.- Throws:
IOException
-
storeBytes
public static void storeBytes(it.unimi.dsi.fastutil.bytes.ByteIterator i, CharSequence filename) throws IOException Stores the element returned by an iterator to a file given by a filename.- Parameters:
i- an iterator whose output will be written to the filefilename.filename- a filename.- Throws:
IOException
-
asByteIterator
Wraps the given data input stream into an iterator.- Parameters:
dataInput- a data input.
-
asByteIterator
Wraps a file given by aFileobject into an iterator.- Parameters:
file- a file.- Throws:
IOException
-
asByteIterator
public static it.unimi.dsi.fastutil.bytes.ByteIterator asByteIterator(CharSequence filename) throws IOException Wraps a file given by a filename 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 filename into an iterable object.- Parameters:
filename- a filename.
-
loadChars
public static int loadChars(ReadableByteChannel channel, ByteOrder byteOrder, char[] array, int offset, int length) throws IOException Loads elements from a given readable channel, using the given byte order, storing them in a given array fragment.- Parameters:
channel- a readable channel.byteOrder- the byte order of the data fromchannel.array- an array which will be filled with data fromchannel.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
channel(it might be less thanlengthifchannelends). - Throws:
IOException
-
loadChars
public static int loadChars(ReadableByteChannel channel, ByteOrder byteOrder, char[] array) throws IOException Loads elements from a given readable channel, using the given byte order, storing them in a given array.- Parameters:
channel- a readable channel.byteOrder- the byte order of the data fromchannel.array- an array which will be filled with data fromchannel.- Returns:
- the number of elements actually read from
channel(it might be less than the array length ifchannelends). - Throws:
IOException
-
loadChars
public static int loadChars(File file, ByteOrder byteOrder, char[] array, int offset, int length) throws IOException Loads elements from a file given by aFileobject, using the given byte order, storing them in a given array fragment.- Parameters:
file- a file.byteOrder- the byte order of the data stored infile.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
-
loadChars
public static int loadChars(CharSequence filename, ByteOrder byteOrder, char[] array, int offset, int length) throws IOException Loads elements from a file given by a filename, using the given byte order, storing them in a given array fragment.- Parameters:
filename- a filename.byteOrder- the byte order of the data stored in the filefilename.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
-
loadChars
Loads elements from a file given by aFileobject, using the given byte order, storing them in a given array.- Parameters:
file- a file.byteOrder- the byte order of the data stored infile.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
-
loadChars
public static int loadChars(CharSequence filename, ByteOrder byteOrder, char[] array) throws IOException Loads elements from a file given by a filename, using the given byte order, storing them in a given array.- Parameters:
filename- a filename.byteOrder- the byte order of the data stored in the filefilename.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
-
loadChars
Loads elements from a file given by aFileobject, using the given byte order, storing them in a new array.Note that the length of the returned array will be computed dividing the specified file size by the number of bytes used to represent each element.
- Parameters:
file- a file.byteOrder- the byte order of the data stored infile.- Returns:
- an array filled with the content of the specified file.
- Throws:
IOException
-
loadChars
Loads elements from a file given by a filename, using the given byte order, storing them in a new array.Note that the length of the returned array will be computed dividing the specified file size by the number of bytes used to represent each element.
- Parameters:
filename- a filename.- Returns:
- an array filled with the content of the specified file.
- Throws:
IOException
-
storeChars
public static void storeChars(char[] array, int offset, int length, WritableByteChannel channel, ByteOrder byteOrder) throws IOException Stores an array fragment to a given writable channel, using the given byte order.- Parameters:
array- an array whose elements will be written tochannel.offset- the index of the first element ofarrayto be written.length- the number of elements ofarrayto be written.channel- a writable channel.byteOrder- the byte order to be used to store data inchannel.- Throws:
IOException
-
storeChars
public static void storeChars(char[] array, WritableByteChannel channel, ByteOrder byteOrder) throws IOException Stores an array to a given writable channel, using the given byte order.- Parameters:
array- an array whose elements will be written tochannel.channel- a writable channel.byteOrder- the byte order to be used to store data inchannel.- Throws:
IOException
-
storeChars
public static void storeChars(char[] array, int offset, int length, File file, ByteOrder byteOrder) throws IOException Stores an array fragment to a file given by aFileobject, using the given byte order.- Parameters:
array- an array whose elements will be written tofile.offset- the index of the first element ofarrayto be written.length- the number of elements ofarrayto be written.file- a file.byteOrder- the byte order to be used to store data infile.- Throws:
IOException
-
storeChars
public static void storeChars(char[] array, int offset, int length, CharSequence filename, ByteOrder byteOrder) throws IOException Stores an array fragment to a file given by a filename, using the given byte order.- Parameters:
array- an array whose elements will be written to the filefilename.offset- the index of the first element ofarrayto be written.length- the number of elements ofarrayto be written.filename- a filename.byteOrder- the byte order to be used to store data in the filefilename.- Throws:
IOException
-
storeChars
Stores an array to a file given by aFileobject, using the given byte order.- Parameters:
array- an array whose elements will be written tofile.file- a file.byteOrder- the byte order to be used to store data infile.- Throws:
IOException
-
storeChars
public static void storeChars(char[] array, CharSequence filename, ByteOrder byteOrder) throws IOException Stores an array to a file given by a filename, using the given byte order.- Parameters:
array- an array whose elements will be written to the filefilename.filename- a filename.byteOrder- the byte order to be used to store data in the filefilename.- Throws:
IOException
-
loadChars
public static long loadChars(ReadableByteChannel channel, ByteOrder byteOrder, char[][] array, long offset, long length) throws IOException Loads elements from a given readable channel, using the given byte order, storing them in a given big-array fragment.- Parameters:
channel- a readable channel.byteOrder- the byte order of the data fromchannel.array- a big array which will be filled with data fromchannel.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
channel(it might be less thanlengthifchannelends). - Throws:
IOException
-
loadChars
public static long loadChars(ReadableByteChannel channel, ByteOrder byteOrder, char[][] array) throws IOException Loads elements from a given readable channel, using the given byte order, storing them in a given big array.- Parameters:
channel- a readable channel.byteOrder- the byte order of the data fromchannel.array- a big array which will be filled with data fromchannel.- Returns:
- the number of elements actually read from
channel(it might be less than the array length ifchannelends). - Throws:
IOException
-
loadChars
public static long loadChars(File file, ByteOrder byteOrder, char[][] array, long offset, long length) throws IOException Loads elements from a file given by aFileobject, using the given byte order, storing them in a given big-array fragment.- Parameters:
file- a file.byteOrder- the byte order of the data stored infile.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
-
loadChars
public static long loadChars(CharSequence filename, ByteOrder byteOrder, char[][] array, long offset, long length) throws IOException Loads elements from a file given by a filename, using the given byte order, storing them in a given big-array fragment.- Parameters:
filename- a filename.byteOrder- the byte order of the data stored in the filefilename.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
-
loadChars
Loads elements from a file given by aFileobject, using the given byte order, storing them in a given big array.- Parameters:
file- a file.byteOrder- the byte order of the data stored infile.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
-
loadChars
public static long loadChars(CharSequence filename, ByteOrder byteOrder, char[][] array) throws IOException Loads elements from a file given by a filename, using the given byte order, storing them in a given big array.- Parameters:
filename- a filename.byteOrder- the byte order of the data stored in the filefilename.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
-
loadCharsBig
Loads elements from a file given by aFileobject, using the given byte order, storing them in a new big array.Note that the length of the returned big array will be computed dividing the specified file size by the number of bytes used to represent each element.
- Parameters:
file- a file.byteOrder- the byte order of the data stored infile.- Returns:
- a big array filled with the content of the specified file.
- Throws:
IOException
-
loadCharsBig
Loads elements from a file given by a filename, using the given byte order, storing them in a new big array.Note that the length of the returned big array will be computed dividing the specified file size by the number of bytes used to represent each element.
- Parameters:
filename- a filename.byteOrder- the byte order of the data stored in the filefilename.- Returns:
- a big array filled with the content of the specified file.
- Throws:
IOException
-
storeChars
public static void storeChars(char[][] array, long offset, long length, WritableByteChannel channel, ByteOrder byteOrder) throws IOException Stores an array fragment to a given writable channel, using the given byte order.- Parameters:
array- an array whose elements will be written tochannel.offset- the index of the first element ofarrayto be written.length- the number of elements ofarrayto be written.channel- a writable channel.byteOrder- the byte order to be used to store data inchannel.- Throws:
IOException
-
storeChars
public static void storeChars(char[][] array, WritableByteChannel channel, ByteOrder byteOrder) throws IOException Stores a big array to a given writable channel, using the given byte order.- Parameters:
array- a big array whose elements will be written tochannel.channel- a writable channel.byteOrder- the byte order to be used to store data inchannel.- Throws:
IOException
-
storeChars
public static void storeChars(char[][] array, long offset, long length, File file, ByteOrder byteOrder) throws IOException Stores a big-array fragment to a file given by aFileobject, using the given byte order.- Parameters:
array- a big array whose elements will be written tofile.offset- the index of the first element ofarrayto be written.length- the number of elements ofarrayto be written.file- a file.byteOrder- the byte order to be used to store data infile.- Throws:
IOException
-
storeChars
public static void storeChars(char[][] array, long offset, long length, CharSequence filename, ByteOrder byteOrder) throws IOException Stores a big-array fragment to a file given by a filename, using the given byte order.- Parameters:
array- a big array whose elements will be written to the filefilename.offset- the index of the first element ofarrayto be written.length- the number of elements ofarrayto be written.filename- a filename.byteOrder- the byte order to be used to store data in the filefilename.- Throws:
IOException
-
storeChars
Stores an array to a file given by aFileobject, using the given byte order.- Parameters:
array- an array whose elements will be written tofile.file- a file.byteOrder- the byte order to be used to store data infile.- Throws:
IOException
-
storeChars
public static void storeChars(char[][] array, CharSequence filename, ByteOrder byteOrder) throws IOException Stores a big array to a file given by a filename, using the given byte order.- Parameters:
array- a big array whose elements will be written to the filefilename.filename- a filename.byteOrder- the byte order to be used to store data in the filefilename.- Throws:
IOException
-
storeChars
public static void storeChars(it.unimi.dsi.fastutil.chars.CharIterator i, WritableByteChannel channel, ByteOrder byteOrder) throws IOException Stores the element returned by an iterator to a given writable channel, using the given byte order.- Parameters:
i- an iterator whose output will be written tochannel.channel- a writable channel.byteOrder- the byte order to be used to store data inchannel.- Throws:
IOException
-
storeChars
public static void storeChars(it.unimi.dsi.fastutil.chars.CharIterator i, File file, ByteOrder byteOrder) throws IOException Stores the element returned by an iterator to a file given by aFileobject, using the given byte order.- Parameters:
i- an iterator whose output will be written tofile.file- a file.byteOrder- the byte order to be used to store data infile.- Throws:
IOException
-
storeChars
public static void storeChars(it.unimi.dsi.fastutil.chars.CharIterator i, CharSequence filename, ByteOrder byteOrder) throws IOException Stores the element returned by an iterator to a file given by a filename, using the given byte order.- Parameters:
i- an iterator whose output will be written to the filefilename.filename- a filename.byteOrder- the byte order to be used to store data in the filefilename.- Throws:
IOException
-
asCharIterator
public static it.unimi.dsi.fastutil.chars.CharIterator asCharIterator(ReadableByteChannel channel, ByteOrder byteOrder) Wraps the given readable channel, using the given byte order, into an iterator.- Parameters:
channel- a readable channel.byteOrder- the byte order of the data fromchannel.
-
asCharIterator
public static it.unimi.dsi.fastutil.chars.CharIterator asCharIterator(File file, ByteOrder byteOrder) throws IOException Wraps a file given by aFileobject, using the given byte order, into an iterator.- Parameters:
file- a file.byteOrder- the byte order of the data stored infile.- Throws:
IOException
-
asCharIterator
public static it.unimi.dsi.fastutil.chars.CharIterator asCharIterator(CharSequence filename, ByteOrder byteOrder) throws IOException Wraps a file given by a filename, using the given byte order, into an iterator.- Parameters:
filename- a filename.byteOrder- the byte order of the data stored in the filefilename.- Throws:
IOException
-
asCharIterable
public static it.unimi.dsi.fastutil.chars.CharIterable asCharIterable(File file, ByteOrder byteOrder) Wraps a file given by aFileobject, using the given byte order, into an iterable object.- Parameters:
file- a file.byteOrder- the byte order of the data stored infile.
-
asCharIterable
public static it.unimi.dsi.fastutil.chars.CharIterable asCharIterable(CharSequence filename, ByteOrder byteOrder) Wraps a file given by a filename, using the given byte order, into an iterable object.- Parameters:
filename- a filename.byteOrder- the byte order of the data stored in the filefilename.
-
loadChars
public static int loadChars(DataInput dataInput, char[] array, int offset, int length) throws IOException Loads elements from a given data input, storing them in a given array fragment.- Parameters:
dataInput- a data input.array- an array which will be filled with data fromdataInput.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
dataInput(it might be less thanlengthifdataInputends). - Throws:
IOException
-
loadChars
Loads elements from a given data input, storing them in a given array.- Parameters:
dataInput- a data input.array- an array which will be filled with data fromdataInput.- Returns:
- the number of elements actually read from
dataInput(it might be less than the array length ifdataInputends). - Throws:
IOException
-
loadChars
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
-
loadChars
public static int loadChars(CharSequence filename, char[] 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
-
loadChars
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
-
loadChars
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
-
loadChars
Loads elements from a file given by aFileobject, storing them in a new array.Note that the length of the returned array will be computed dividing the specified file size by the number of bytes used to represent each element.
- Parameters:
file- a file.- Returns:
- an array filled with the content of the specified file.
- Throws:
IOException
-
loadChars
Loads elements from a file given by a filename, storing them in a new array.Note that the length of the returned array will be computed dividing the specified file size by the number of bytes used to represent each element.
- Parameters:
filename- a filename.- Returns:
- an array filled with the content of the specified file.
- Throws:
IOException
-
storeChars
public static void storeChars(char[] array, int offset, int length, DataOutput dataOutput) throws IOException Stores an array fragment to a given data output.- Parameters:
array- an array whose elements will be written todataOutput.offset- the index of the first element ofarrayto be written.length- the number of elements ofarrayto be written.dataOutput- a data output.- Throws:
IOException
-
storeChars
Stores an array to a given data output.- Parameters:
array- an array whose elements will be written todataOutput.dataOutput- a data output.- Throws:
IOException
-
storeChars
Stores an array fragment to a file given by aFileobject.- Parameters:
array- an array whose elements will be written tofile.offset- the index of the first element ofarrayto be written.length- the number of elements ofarrayto be written.file- a file.- Throws:
IOException
-
storeChars
public static void storeChars(char[] array, int offset, int length, CharSequence filename) throws IOException Stores an array fragment to a file given by a filename.- Parameters:
array- an array whose elements will be written to the filefilename.offset- the index of the first element ofarrayto be written.length- the number of elements ofarrayto be written.filename- a filename.- Throws:
IOException
-
storeChars
Stores an array to a file given by aFileobject.- Parameters:
array- an array whose elements will be written tofile.file- a file.- Throws:
IOException
-
storeChars
Stores an array to a file given by a filename.- Parameters:
array- an array whose elements will be written to the filefilename.filename- a filename.- Throws:
IOException
-
loadChars
public static long loadChars(DataInput dataInput, char[][] array, long offset, long length) throws IOException Loads elements from a given data input, storing them in a given big-array fragment.- Parameters:
dataInput- a data input.array- a big array which will be filled with data fromdataInput.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
dataInput(it might be less thanlengthifdataInputends). - Throws:
IOException
-
loadChars
Loads elements from a given data input, storing them in a given big array.- Parameters:
dataInput- a data input.array- a big array which will be filled with data fromdataInput.- Returns:
- the number of elements actually read from
dataInput(it might be less than the array length ifdataInputends). - Throws:
IOException
-
loadChars
public static long loadChars(File file, char[][] 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
-
loadChars
public static long loadChars(CharSequence filename, char[][] 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- 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
-
loadChars
Loads elements from a file given by aFileobject, storing them in a given big 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
-
loadChars
Loads elements from a file given by a filename, storing them in a given big 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
-
loadCharsBig
Loads elements from a file given by aFileobject, storing them in a new big array.Note that the length of the returned big array will be computed dividing the specified file size by the number of bytes used to represent each element.
- Parameters:
file- a file.- Returns:
- a big array filled with the content of the specified file.
- Throws:
IOException
-
loadCharsBig
Loads elements from a file given by a filename, storing them in a new big array.Note that the length of the returned big array will be computed dividing the specified file size by the number of bytes used to represent each element.
- Parameters:
filename- a filename.- Returns:
- a big array filled with the content of the specified file.
- Throws:
IOException
-
storeChars
public static void storeChars(char[][] array, long offset, long length, DataOutput dataOutput) throws IOException Stores an array fragment to a given data output.- Parameters:
array- an array whose elements will be written todataOutput.offset- the index of the first element ofarrayto be written.length- the number of elements ofarrayto be written.dataOutput- a data output.- Throws:
IOException
-
storeChars
Stores a big array to a given data output.- Parameters:
array- a big array whose elements will be written todataOutput.dataOutput- a data output.- Throws:
IOException
-
storeChars
public static void storeChars(char[][] 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 tofile.offset- the index of the first element ofarrayto be written.length- the number of elements ofarrayto be written.file- a file.- Throws:
IOException
-
storeChars
public static void storeChars(char[][] array, long offset, long length, CharSequence filename) throws IOException Stores a big-array fragment to a file given by a filename.- Parameters:
array- a big array whose elements will be written to the filefilename.offset- the index of the first element ofarrayto be written.length- the number of elements ofarrayto be written.filename- a filename.- Throws:
IOException
-
storeChars
Stores an array to a file given by aFileobject.- Parameters:
array- an array whose elements will be written tofile.file- a file.- Throws:
IOException
-
storeChars
Stores a big array to a file given by a filename.- Parameters:
array- a big array whose elements will be written to the filefilename.filename- a filename.- Throws:
IOException
-
storeChars
public static void storeChars(it.unimi.dsi.fastutil.chars.CharIterator i, DataOutput dataOutput) throws IOException Stores the element returned by an iterator to a given data output.- Parameters:
i- an iterator whose output will be written todataOutput.dataOutput- a filename.- Throws:
IOException
-
storeChars
public static void storeChars(it.unimi.dsi.fastutil.chars.CharIterator i, File file) throws IOException Stores the element returned by an iterator to a file given by aFileobject.- Parameters:
i- an iterator whose output will be written tofile.file- a file.- Throws:
IOException
-
storeChars
public static void storeChars(it.unimi.dsi.fastutil.chars.CharIterator i, CharSequence filename) throws IOException Stores the element returned by an iterator to a file given by a filename.- Parameters:
i- an iterator whose output will be written to the filefilename.filename- a filename.- Throws:
IOException
-
asCharIterator
Wraps the given data input stream into an iterator.- Parameters:
dataInput- a data input.
-
asCharIterator
Wraps a file given by aFileobject into an iterator.- Parameters:
file- a file.- Throws:
IOException
-
asCharIterator
public static it.unimi.dsi.fastutil.chars.CharIterator asCharIterator(CharSequence filename) throws IOException Wraps a file given by a filename into an iterator.- Parameters:
filename- a filename.- Throws:
IOException
-
asCharIterable
Wraps a file given by aFileobject into an iterable object.- Parameters:
file- a file.
-
asCharIterable
Wraps a file given by a filename into an iterable object.- Parameters:
filename- a filename.
-
loadShorts
public static int loadShorts(ReadableByteChannel channel, ByteOrder byteOrder, short[] array, int offset, int length) throws IOException Loads elements from a given readable channel, using the given byte order, storing them in a given array fragment.- Parameters:
channel- a readable channel.byteOrder- the byte order of the data fromchannel.array- an array which will be filled with data fromchannel.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
channel(it might be less thanlengthifchannelends). - Throws:
IOException
-
loadShorts
public static int loadShorts(ReadableByteChannel channel, ByteOrder byteOrder, short[] array) throws IOException Loads elements from a given readable channel, using the given byte order, storing them in a given array.- Parameters:
channel- a readable channel.byteOrder- the byte order of the data fromchannel.array- an array which will be filled with data fromchannel.- Returns:
- the number of elements actually read from
channel(it might be less than the array length ifchannelends). - Throws:
IOException
-
loadShorts
public static int loadShorts(File file, ByteOrder byteOrder, short[] array, int offset, int length) throws IOException Loads elements from a file given by aFileobject, using the given byte order, storing them in a given array fragment.- Parameters:
file- a file.byteOrder- the byte order of the data stored infile.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, ByteOrder byteOrder, short[] array, int offset, int length) throws IOException Loads elements from a file given by a filename, using the given byte order, storing them in a given array fragment.- Parameters:
filename- a filename.byteOrder- the byte order of the data stored in the filefilename.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, using the given byte order, storing them in a given array.- Parameters:
file- a file.byteOrder- the byte order of the data stored infile.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
public static int loadShorts(CharSequence filename, ByteOrder byteOrder, short[] array) throws IOException Loads elements from a file given by a filename, using the given byte order, storing them in a given array.- Parameters:
filename- a filename.byteOrder- the byte order of the data stored in the filefilename.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 aFileobject, using the given byte order, storing them in a new array.Note that the length of the returned array will be computed dividing the specified file size by the number of bytes used to represent each element.
- Parameters:
file- a file.byteOrder- the byte order of the data stored infile.- Returns:
- an array filled with the content of the specified file.
- Throws:
IOException
-
loadShorts
Loads elements from a file given by a filename, using the given byte order, storing them in a new array.Note that the length of the returned array will be computed dividing the specified file size by the number of bytes used to represent each element.
- Parameters:
filename- a filename.- Returns:
- an array filled with the content of the specified file.
- Throws:
IOException
-
storeShorts
public static void storeShorts(short[] array, int offset, int length, WritableByteChannel channel, ByteOrder byteOrder) throws IOException Stores an array fragment to a given writable channel, using the given byte order.- Parameters:
array- an array whose elements will be written tochannel.offset- the index of the first element ofarrayto be written.length- the number of elements ofarrayto be written.channel- a writable channel.byteOrder- the byte order to be used to store data inchannel.- Throws:
IOException
-
storeShorts
public static void storeShorts(short[] array, WritableByteChannel channel, ByteOrder byteOrder) throws IOException Stores an array to a given writable channel, using the given byte order.- Parameters:
array- an array whose elements will be written tochannel.channel- a writable channel.byteOrder- the byte order to be used to store data inchannel.- Throws:
IOException
-
storeShorts
public static void storeShorts(short[] array, int offset, int length, File file, ByteOrder byteOrder) throws IOException Stores an array fragment to a file given by aFileobject, using the given byte order.- Parameters:
array- an array whose elements will be written tofile.offset- the index of the first element ofarrayto be written.length- the number of elements ofarrayto be written.file- a file.byteOrder- the byte order to be used to store data infile.- Throws:
IOException
-
storeShorts
public static void storeShorts(short[] array, int offset, int length, CharSequence filename, ByteOrder byteOrder) throws IOException Stores an array fragment to a file given by a filename, using the given byte order.- Parameters:
array- an array whose elements will be written to the filefilename.offset- the index of the first element ofarrayto be written.length- the number of elements ofarrayto be written.filename- a filename.byteOrder- the byte order to be used to store data in the filefilename.- Throws:
IOException
-
storeShorts
Stores an array to a file given by aFileobject, using the given byte order.- Parameters:
array- an array whose elements will be written tofile.file- a file.byteOrder- the byte order to be used to store data infile.- Throws:
IOException
-
storeShorts
public static void storeShorts(short[] array, CharSequence filename, ByteOrder byteOrder) throws IOException Stores an array to a file given by a filename, using the given byte order.- Parameters:
array- an array whose elements will be written to the filefilename.filename- a filename.byteOrder- the byte order to be used to store data in the filefilename.- Throws:
IOException
-
loadShorts
public static long loadShorts(ReadableByteChannel channel, ByteOrder byteOrder, short[][] array, long offset, long length) throws IOException Loads elements from a given readable channel, using the given byte order, storing them in a given big-array fragment.- Parameters:
channel- a readable channel.byteOrder- the byte order of the data fromchannel.array- a big array which will be filled with data fromchannel.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
channel(it might be less thanlengthifchannelends). - Throws:
IOException
-
loadShorts
public static long loadShorts(ReadableByteChannel channel, ByteOrder byteOrder, short[][] array) throws IOException Loads elements from a given readable channel, using the given byte order, storing them in a given big array.- Parameters:
channel- a readable channel.byteOrder- the byte order of the data fromchannel.array- a big array which will be filled with data fromchannel.- Returns:
- the number of elements actually read from
channel(it might be less than the array length ifchannelends). - Throws:
IOException
-
loadShorts
public static long loadShorts(File file, ByteOrder byteOrder, short[][] array, long offset, long length) throws IOException Loads elements from a file given by aFileobject, using the given byte order, storing them in a given big-array fragment.- Parameters:
file- a file.byteOrder- the byte order of the data stored infile.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, ByteOrder byteOrder, short[][] array, long offset, long length) throws IOException Loads elements from a file given by a filename, using the given byte order, storing them in a given big-array fragment.- Parameters:
filename- a filename.byteOrder- the byte order of the data stored in the filefilename.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, using the given byte order, storing them in a given big array.- Parameters:
file- a file.byteOrder- the byte order of the data stored infile.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
public static long loadShorts(CharSequence filename, ByteOrder byteOrder, short[][] array) throws IOException Loads elements from a file given by a filename, using the given byte order, storing them in a given big array.- Parameters:
filename- a filename.byteOrder- the byte order of the data stored in the filefilename.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
-
loadShortsBig
Loads elements from a file given by aFileobject, using the given byte order, storing them in a new big array.Note that the length of the returned big array will be computed dividing the specified file size by the number of bytes used to represent each element.
- Parameters:
file- a file.byteOrder- the byte order of the data stored infile.- Returns:
- a big array filled with the content of the specified file.
- Throws:
IOException
-
loadShortsBig
public static short[][] loadShortsBig(CharSequence filename, ByteOrder byteOrder) throws IOException Loads elements from a file given by a filename, using the given byte order, storing them in a new big array.Note that the length of the returned big array will be computed dividing the specified file size by the number of bytes used to represent each element.
- Parameters:
filename- a filename.byteOrder- the byte order of the data stored in the filefilename.- Returns:
- a big array filled with the content of the specified file.
- Throws:
IOException
-
storeShorts
public static void storeShorts(short[][] array, long offset, long length, WritableByteChannel channel, ByteOrder byteOrder) throws IOException Stores an array fragment to a given writable channel, using the given byte order.- Parameters:
array- an array whose elements will be written tochannel.offset- the index of the first element ofarrayto be written.length- the number of elements ofarrayto be written.channel- a writable channel.byteOrder- the byte order to be used to store data inchannel.- Throws:
IOException
-
storeShorts
public static void storeShorts(short[][] array, WritableByteChannel channel, ByteOrder byteOrder) throws IOException Stores a big array to a given writable channel, using the given byte order.- Parameters:
array- a big array whose elements will be written tochannel.channel- a writable channel.byteOrder- the byte order to be used to store data inchannel.- Throws:
IOException
-
storeShorts
public static void storeShorts(short[][] array, long offset, long length, File file, ByteOrder byteOrder) throws IOException Stores a big-array fragment to a file given by aFileobject, using the given byte order.- Parameters:
array- a big array whose elements will be written tofile.offset- the index of the first element ofarrayto be written.length- the number of elements ofarrayto be written.file- a file.byteOrder- the byte order to be used to store data infile.- Throws:
IOException
-
storeShorts
public static void storeShorts(short[][] array, long offset, long length, CharSequence filename, ByteOrder byteOrder) throws IOException Stores a big-array fragment to a file given by a filename, using the given byte order.- Parameters:
array- a big array whose elements will be written to the filefilename.offset- the index of the first element ofarrayto be written.length- the number of elements ofarrayto be written.filename- a filename.byteOrder- the byte order to be used to store data in the filefilename.- Throws:
IOException
-
storeShorts
Stores an array to a file given by aFileobject, using the given byte order.- Parameters:
array- an array whose elements will be written tofile.file- a file.byteOrder- the byte order to be used to store data infile.- Throws:
IOException
-
storeShorts
public static void storeShorts(short[][] array, CharSequence filename, ByteOrder byteOrder) throws IOException Stores a big array to a file given by a filename, using the given byte order.- Parameters:
array- a big array whose elements will be written to the filefilename.filename- a filename.byteOrder- the byte order to be used to store data in the filefilename.- Throws:
IOException
-
storeShorts
public static void storeShorts(it.unimi.dsi.fastutil.shorts.ShortIterator i, WritableByteChannel channel, ByteOrder byteOrder) throws IOException Stores the element returned by an iterator to a given writable channel, using the given byte order.- Parameters:
i- an iterator whose output will be written tochannel.channel- a writable channel.byteOrder- the byte order to be used to store data inchannel.- Throws:
IOException
-
storeShorts
public static void storeShorts(it.unimi.dsi.fastutil.shorts.ShortIterator i, File file, ByteOrder byteOrder) throws IOException Stores the element returned by an iterator to a file given by aFileobject, using the given byte order.- Parameters:
i- an iterator whose output will be written tofile.file- a file.byteOrder- the byte order to be used to store data infile.- Throws:
IOException
-
storeShorts
public static void storeShorts(it.unimi.dsi.fastutil.shorts.ShortIterator i, CharSequence filename, ByteOrder byteOrder) throws IOException Stores the element returned by an iterator to a file given by a filename, using the given byte order.- Parameters:
i- an iterator whose output will be written to the filefilename.filename- a filename.byteOrder- the byte order to be used to store data in the filefilename.- Throws:
IOException
-
asShortIterator
public static it.unimi.dsi.fastutil.shorts.ShortIterator asShortIterator(ReadableByteChannel channel, ByteOrder byteOrder) Wraps the given readable channel, using the given byte order, into an iterator.- Parameters:
channel- a readable channel.byteOrder- the byte order of the data fromchannel.
-
asShortIterator
public static it.unimi.dsi.fastutil.shorts.ShortIterator asShortIterator(File file, ByteOrder byteOrder) throws IOException Wraps a file given by aFileobject, using the given byte order, into an iterator.- Parameters:
file- a file.byteOrder- the byte order of the data stored infile.- Throws:
IOException
-
asShortIterator
public static it.unimi.dsi.fastutil.shorts.ShortIterator asShortIterator(CharSequence filename, ByteOrder byteOrder) throws IOException Wraps a file given by a filename, using the given byte order, into an iterator.- Parameters:
filename- a filename.byteOrder- the byte order of the data stored in the filefilename.- Throws:
IOException
-
asShortIterable
public static it.unimi.dsi.fastutil.shorts.ShortIterable asShortIterable(File file, ByteOrder byteOrder) Wraps a file given by aFileobject, using the given byte order, into an iterable object.- Parameters:
file- a file.byteOrder- the byte order of the data stored infile.
-
asShortIterable
public static it.unimi.dsi.fastutil.shorts.ShortIterable asShortIterable(CharSequence filename, ByteOrder byteOrder) Wraps a file given by a filename, using the given byte order, into an iterable object.- Parameters:
filename- a filename.byteOrder- the byte order of the data stored in the filefilename.
-
loadShorts
public static int loadShorts(DataInput dataInput, short[] array, int offset, int length) throws IOException Loads elements from a given data input, storing them in a given array fragment.- Parameters:
dataInput- a data input.array- an array which will be filled with data fromdataInput.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
dataInput(it might be less thanlengthifdataInputends). - Throws:
IOException
-
loadShorts
Loads elements from a given data input, storing them in a given array.- Parameters:
dataInput- a data input.array- an array which will be filled with data fromdataInput.- Returns:
- the number of elements actually read from
dataInput(it might be less than the array length ifdataInputends). - 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
-
loadShorts
Loads elements from a file given by aFileobject, storing them in a new array.Note that the length of the returned array will be computed dividing the specified file size by the number of bytes used to represent each element.
- Parameters:
file- a file.- Returns:
- an array filled with the content of the specified file.
- Throws:
IOException
-
loadShorts
Loads elements from a file given by a filename, storing them in a new array.Note that the length of the returned array will be computed dividing the specified file size by the number of bytes used to represent each element.
- Parameters:
filename- a filename.- Returns:
- an array filled with the content of the specified file.
- Throws:
IOException
-
storeShorts
public static void storeShorts(short[] array, int offset, int length, DataOutput dataOutput) throws IOException Stores an array fragment to a given data output.- Parameters:
array- an array whose elements will be written todataOutput.offset- the index of the first element ofarrayto be written.length- the number of elements ofarrayto be written.dataOutput- a data output.- Throws:
IOException
-
storeShorts
Stores an array to a given data output.- Parameters:
array- an array whose elements will be written todataOutput.dataOutput- a data output.- Throws:
IOException
-
storeShorts
Stores an array fragment to a file given by aFileobject.- Parameters:
array- an array whose elements will be written tofile.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 filename.- Parameters:
array- an array whose elements will be written to the filefilename.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 tofile.file- a file.- Throws:
IOException
-
storeShorts
Stores an array to a file given by a filename.- Parameters:
array- an array whose elements will be written to the filefilename.filename- a filename.- Throws:
IOException
-
loadShorts
public static long loadShorts(DataInput dataInput, short[][] array, long offset, long length) throws IOException Loads elements from a given data input, storing them in a given big-array fragment.- Parameters:
dataInput- a data input.array- a big array which will be filled with data fromdataInput.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
dataInput(it might be less thanlengthifdataInputends). - Throws:
IOException
-
loadShorts
Loads elements from a given data input, storing them in a given big array.- Parameters:
dataInput- a data input.array- a big array which will be filled with data fromdataInput.- Returns:
- the number of elements actually read from
dataInput(it might be less than the array length ifdataInputends). - 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- 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 big 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 big 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
-
loadShortsBig
Loads elements from a file given by aFileobject, storing them in a new big array.Note that the length of the returned big array will be computed dividing the specified file size by the number of bytes used to represent each element.
- Parameters:
file- a file.- Returns:
- a big array filled with the content of the specified file.
- Throws:
IOException
-
loadShortsBig
Loads elements from a file given by a filename, storing them in a new big array.Note that the length of the returned big array will be computed dividing the specified file size by the number of bytes used to represent each element.
- Parameters:
filename- a filename.- Returns:
- a big array filled with the content of the specified file.
- Throws:
IOException
-
storeShorts
public static void storeShorts(short[][] array, long offset, long length, DataOutput dataOutput) throws IOException Stores an array fragment to a given data output.- Parameters:
array- an array whose elements will be written todataOutput.offset- the index of the first element ofarrayto be written.length- the number of elements ofarrayto be written.dataOutput- a data output.- Throws:
IOException
-
storeShorts
Stores a big array to a given data output.- Parameters:
array- a big array whose elements will be written todataOutput.dataOutput- a data output.- Throws:
IOException
-
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 tofile.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 filename.- Parameters:
array- a big array whose elements will be written to the filefilename.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 tofile.file- a file.- Throws:
IOException
-
storeShorts
Stores a big array to a file given by a filename.- Parameters:
array- a big array whose elements will be written to the filefilename.filename- a filename.- Throws:
IOException
-
storeShorts
public static void storeShorts(it.unimi.dsi.fastutil.shorts.ShortIterator i, DataOutput dataOutput) throws IOException Stores the element returned by an iterator to a given data output.- Parameters:
i- an iterator whose output will be written todataOutput.dataOutput- a filename.- Throws:
IOException
-
storeShorts
public static void storeShorts(it.unimi.dsi.fastutil.shorts.ShortIterator i, File file) throws IOException Stores the element returned by an iterator to a file given by aFileobject.- Parameters:
i- an iterator whose output will be written tofile.file- a file.- Throws:
IOException
-
storeShorts
public static void storeShorts(it.unimi.dsi.fastutil.shorts.ShortIterator i, CharSequence filename) throws IOException Stores the element returned by an iterator to a file given by a filename.- Parameters:
i- an iterator whose output will be written to the filefilename.filename- a filename.- Throws:
IOException
-
asShortIterator
Wraps the given data input stream into an iterator.- Parameters:
dataInput- a data input.
-
asShortIterator
public static it.unimi.dsi.fastutil.shorts.ShortIterator asShortIterator(File file) throws IOException Wraps a file given by aFileobject into an iterator.- Parameters:
file- a file.- Throws:
IOException
-
asShortIterator
public static it.unimi.dsi.fastutil.shorts.ShortIterator asShortIterator(CharSequence filename) throws IOException Wraps a file given by a filename 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 filename into an iterable object.- Parameters:
filename- a filename.
-
loadInts
public static int loadInts(ReadableByteChannel channel, ByteOrder byteOrder, int[] array, int offset, int length) throws IOException Loads elements from a given readable channel, using the given byte order, storing them in a given array fragment.- Parameters:
channel- a readable channel.byteOrder- the byte order of the data fromchannel.array- an array which will be filled with data fromchannel.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
channel(it might be less thanlengthifchannelends). - Throws:
IOException
-
loadInts
public static int loadInts(ReadableByteChannel channel, ByteOrder byteOrder, int[] array) throws IOException Loads elements from a given readable channel, using the given byte order, storing them in a given array.- Parameters:
channel- a readable channel.byteOrder- the byte order of the data fromchannel.array- an array which will be filled with data fromchannel.- Returns:
- the number of elements actually read from
channel(it might be less than the array length ifchannelends). - Throws:
IOException
-
loadInts
public static int loadInts(File file, ByteOrder byteOrder, int[] array, int offset, int length) throws IOException Loads elements from a file given by aFileobject, using the given byte order, storing them in a given array fragment.- Parameters:
file- a file.byteOrder- the byte order of the data stored infile.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, ByteOrder byteOrder, int[] array, int offset, int length) throws IOException Loads elements from a file given by a filename, using the given byte order, storing them in a given array fragment.- Parameters:
filename- a filename.byteOrder- the byte order of the data stored in the filefilename.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, using the given byte order, storing them in a given array.- Parameters:
file- a file.byteOrder- the byte order of the data stored infile.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
public static int loadInts(CharSequence filename, ByteOrder byteOrder, int[] array) throws IOException Loads elements from a file given by a filename, using the given byte order, storing them in a given array.- Parameters:
filename- a filename.byteOrder- the byte order of the data stored in the filefilename.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 aFileobject, using the given byte order, storing them in a new array.Note that the length of the returned array will be computed dividing the specified file size by the number of bytes used to represent each element.
- Parameters:
file- a file.byteOrder- the byte order of the data stored infile.- Returns:
- an array filled with the content of the specified file.
- Throws:
IOException
-
loadInts
Loads elements from a file given by a filename, using the given byte order, storing them in a new array.Note that the length of the returned array will be computed dividing the specified file size by the number of bytes used to represent each element.
- Parameters:
filename- a filename.- Returns:
- an array filled with the content of the specified file.
- Throws:
IOException
-
storeInts
public static void storeInts(int[] array, int offset, int length, WritableByteChannel channel, ByteOrder byteOrder) throws IOException Stores an array fragment to a given writable channel, using the given byte order.- Parameters:
array- an array whose elements will be written tochannel.offset- the index of the first element ofarrayto be written.length- the number of elements ofarrayto be written.channel- a writable channel.byteOrder- the byte order to be used to store data inchannel.- Throws:
IOException
-
storeInts
public static void storeInts(int[] array, WritableByteChannel channel, ByteOrder byteOrder) throws IOException Stores an array to a given writable channel, using the given byte order.- Parameters:
array- an array whose elements will be written tochannel.channel- a writable channel.byteOrder- the byte order to be used to store data inchannel.- Throws:
IOException
-
storeInts
public static void storeInts(int[] array, int offset, int length, File file, ByteOrder byteOrder) throws IOException Stores an array fragment to a file given by aFileobject, using the given byte order.- Parameters:
array- an array whose elements will be written tofile.offset- the index of the first element ofarrayto be written.length- the number of elements ofarrayto be written.file- a file.byteOrder- the byte order to be used to store data infile.- Throws:
IOException
-
storeInts
public static void storeInts(int[] array, int offset, int length, CharSequence filename, ByteOrder byteOrder) throws IOException Stores an array fragment to a file given by a filename, using the given byte order.- Parameters:
array- an array whose elements will be written to the filefilename.offset- the index of the first element ofarrayto be written.length- the number of elements ofarrayto be written.filename- a filename.byteOrder- the byte order to be used to store data in the filefilename.- Throws:
IOException
-
storeInts
Stores an array to a file given by aFileobject, using the given byte order.- Parameters:
array- an array whose elements will be written tofile.file- a file.byteOrder- the byte order to be used to store data infile.- Throws:
IOException
-
storeInts
public static void storeInts(int[] array, CharSequence filename, ByteOrder byteOrder) throws IOException Stores an array to a file given by a filename, using the given byte order.- Parameters:
array- an array whose elements will be written to the filefilename.filename- a filename.byteOrder- the byte order to be used to store data in the filefilename.- Throws:
IOException
-
loadInts
public static long loadInts(ReadableByteChannel channel, ByteOrder byteOrder, int[][] array, long offset, long length) throws IOException Loads elements from a given readable channel, using the given byte order, storing them in a given big-array fragment.- Parameters:
channel- a readable channel.byteOrder- the byte order of the data fromchannel.array- a big array which will be filled with data fromchannel.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
channel(it might be less thanlengthifchannelends). - Throws:
IOException
-
loadInts
public static long loadInts(ReadableByteChannel channel, ByteOrder byteOrder, int[][] array) throws IOException Loads elements from a given readable channel, using the given byte order, storing them in a given big array.- Parameters:
channel- a readable channel.byteOrder- the byte order of the data fromchannel.array- a big array which will be filled with data fromchannel.- Returns:
- the number of elements actually read from
channel(it might be less than the array length ifchannelends). - Throws:
IOException
-
loadInts
public static long loadInts(File file, ByteOrder byteOrder, int[][] array, long offset, long length) throws IOException Loads elements from a file given by aFileobject, using the given byte order, storing them in a given big-array fragment.- Parameters:
file- a file.byteOrder- the byte order of the data stored infile.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, ByteOrder byteOrder, int[][] array, long offset, long length) throws IOException Loads elements from a file given by a filename, using the given byte order, storing them in a given big-array fragment.- Parameters:
filename- a filename.byteOrder- the byte order of the data stored in the filefilename.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, using the given byte order, storing them in a given big array.- Parameters:
file- a file.byteOrder- the byte order of the data stored infile.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
public static long loadInts(CharSequence filename, ByteOrder byteOrder, int[][] array) throws IOException Loads elements from a file given by a filename, using the given byte order, storing them in a given big array.- Parameters:
filename- a filename.byteOrder- the byte order of the data stored in the filefilename.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
-
loadIntsBig
Loads elements from a file given by aFileobject, using the given byte order, storing them in a new big array.Note that the length of the returned big array will be computed dividing the specified file size by the number of bytes used to represent each element.
- Parameters:
file- a file.byteOrder- the byte order of the data stored infile.- Returns:
- a big array filled with the content of the specified file.
- Throws:
IOException
-
loadIntsBig
Loads elements from a file given by a filename, using the given byte order, storing them in a new big array.Note that the length of the returned big array will be computed dividing the specified file size by the number of bytes used to represent each element.
- Parameters:
filename- a filename.byteOrder- the byte order of the data stored in the filefilename.- Returns:
- a big array filled with the content of the specified file.
- Throws:
IOException
-
storeInts
public static void storeInts(int[][] array, long offset, long length, WritableByteChannel channel, ByteOrder byteOrder) throws IOException Stores an array fragment to a given writable channel, using the given byte order.- Parameters:
array- an array whose elements will be written tochannel.offset- the index of the first element ofarrayto be written.length- the number of elements ofarrayto be written.channel- a writable channel.byteOrder- the byte order to be used to store data inchannel.- Throws:
IOException
-
storeInts
public static void storeInts(int[][] array, WritableByteChannel channel, ByteOrder byteOrder) throws IOException Stores a big array to a given writable channel, using the given byte order.- Parameters:
array- a big array whose elements will be written tochannel.channel- a writable channel.byteOrder- the byte order to be used to store data inchannel.- Throws:
IOException
-
storeInts
public static void storeInts(int[][] array, long offset, long length, File file, ByteOrder byteOrder) throws IOException Stores a big-array fragment to a file given by aFileobject, using the given byte order.- Parameters:
array- a big array whose elements will be written tofile.offset- the index of the first element ofarrayto be written.length- the number of elements ofarrayto be written.file- a file.byteOrder- the byte order to be used to store data infile.- Throws:
IOException
-
storeInts
public static void storeInts(int[][] array, long offset, long length, CharSequence filename, ByteOrder byteOrder) throws IOException Stores a big-array fragment to a file given by a filename, using the given byte order.- Parameters:
array- a big array whose elements will be written to the filefilename.offset- the index of the first element ofarrayto be written.length- the number of elements ofarrayto be written.filename- a filename.byteOrder- the byte order to be used to store data in the filefilename.- Throws:
IOException
-
storeInts
Stores an array to a file given by aFileobject, using the given byte order.- Parameters:
array- an array whose elements will be written tofile.file- a file.byteOrder- the byte order to be used to store data infile.- Throws:
IOException
-
storeInts
public static void storeInts(int[][] array, CharSequence filename, ByteOrder byteOrder) throws IOException Stores a big array to a file given by a filename, using the given byte order.- Parameters:
array- a big array whose elements will be written to the filefilename.filename- a filename.byteOrder- the byte order to be used to store data in the filefilename.- Throws:
IOException
-
storeInts
public static void storeInts(it.unimi.dsi.fastutil.ints.IntIterator i, WritableByteChannel channel, ByteOrder byteOrder) throws IOException Stores the element returned by an iterator to a given writable channel, using the given byte order.- Parameters:
i- an iterator whose output will be written tochannel.channel- a writable channel.byteOrder- the byte order to be used to store data inchannel.- Throws:
IOException
-
storeInts
public static void storeInts(it.unimi.dsi.fastutil.ints.IntIterator i, File file, ByteOrder byteOrder) throws IOException Stores the element returned by an iterator to a file given by aFileobject, using the given byte order.- Parameters:
i- an iterator whose output will be written tofile.file- a file.byteOrder- the byte order to be used to store data infile.- Throws:
IOException
-
storeInts
public static void storeInts(it.unimi.dsi.fastutil.ints.IntIterator i, CharSequence filename, ByteOrder byteOrder) throws IOException Stores the element returned by an iterator to a file given by a filename, using the given byte order.- Parameters:
i- an iterator whose output will be written to the filefilename.filename- a filename.byteOrder- the byte order to be used to store data in the filefilename.- Throws:
IOException
-
asIntIterator
public static it.unimi.dsi.fastutil.ints.IntIterator asIntIterator(ReadableByteChannel channel, ByteOrder byteOrder) Wraps the given readable channel, using the given byte order, into an iterator.- Parameters:
channel- a readable channel.byteOrder- the byte order of the data fromchannel.
-
asIntIterator
public static it.unimi.dsi.fastutil.ints.IntIterator asIntIterator(File file, ByteOrder byteOrder) throws IOException Wraps a file given by aFileobject, using the given byte order, into an iterator.- Parameters:
file- a file.byteOrder- the byte order of the data stored infile.- Throws:
IOException
-
asIntIterator
public static it.unimi.dsi.fastutil.ints.IntIterator asIntIterator(CharSequence filename, ByteOrder byteOrder) throws IOException Wraps a file given by a filename, using the given byte order, into an iterator.- Parameters:
filename- a filename.byteOrder- the byte order of the data stored in the filefilename.- Throws:
IOException
-
asIntIterable
Wraps a file given by aFileobject, using the given byte order, into an iterable object.- Parameters:
file- a file.byteOrder- the byte order of the data stored infile.
-
asIntIterable
public static it.unimi.dsi.fastutil.ints.IntIterable asIntIterable(CharSequence filename, ByteOrder byteOrder) Wraps a file given by a filename, using the given byte order, into an iterable object.- Parameters:
filename- a filename.byteOrder- the byte order of the data stored in the filefilename.
-
loadInts
public static int loadInts(DataInput dataInput, int[] array, int offset, int length) throws IOException Loads elements from a given data input, storing them in a given array fragment.- Parameters:
dataInput- a data input.array- an array which will be filled with data fromdataInput.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
dataInput(it might be less thanlengthifdataInputends). - Throws:
IOException
-
loadInts
Loads elements from a given data input, storing them in a given array.- Parameters:
dataInput- a data input.array- an array which will be filled with data fromdataInput.- Returns:
- the number of elements actually read from
dataInput(it might be less than the array length ifdataInputends). - 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
-
loadInts
Loads elements from a file given by aFileobject, storing them in a new array.Note that the length of the returned array will be computed dividing the specified file size by the number of bytes used to represent each element.
- Parameters:
file- a file.- Returns:
- an array filled with the content of the specified file.
- Throws:
IOException
-
loadInts
Loads elements from a file given by a filename, storing them in a new array.Note that the length of the returned array will be computed dividing the specified file size by the number of bytes used to represent each element.
- Parameters:
filename- a filename.- Returns:
- an array filled with the content of the specified file.
- Throws:
IOException
-
storeInts
public static void storeInts(int[] array, int offset, int length, DataOutput dataOutput) throws IOException Stores an array fragment to a given data output.- Parameters:
array- an array whose elements will be written todataOutput.offset- the index of the first element ofarrayto be written.length- the number of elements ofarrayto be written.dataOutput- a data output.- Throws:
IOException
-
storeInts
Stores an array to a given data output.- Parameters:
array- an array whose elements will be written todataOutput.dataOutput- a data output.- Throws:
IOException
-
storeInts
Stores an array fragment to a file given by aFileobject.- Parameters:
array- an array whose elements will be written tofile.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 filename.- Parameters:
array- an array whose elements will be written to the filefilename.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 tofile.file- a file.- Throws:
IOException
-
storeInts
Stores an array to a file given by a filename.- Parameters:
array- an array whose elements will be written to the filefilename.filename- a filename.- Throws:
IOException
-
loadInts
public static long loadInts(DataInput dataInput, int[][] array, long offset, long length) throws IOException Loads elements from a given data input, storing them in a given big-array fragment.- Parameters:
dataInput- a data input.array- a big array which will be filled with data fromdataInput.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
dataInput(it might be less thanlengthifdataInputends). - Throws:
IOException
-
loadInts
Loads elements from a given data input, storing them in a given big array.- Parameters:
dataInput- a data input.array- a big array which will be filled with data fromdataInput.- Returns:
- the number of elements actually read from
dataInput(it might be less than the array length ifdataInputends). - 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- 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 big 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 big 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
-
loadIntsBig
Loads elements from a file given by aFileobject, storing them in a new big array.Note that the length of the returned big array will be computed dividing the specified file size by the number of bytes used to represent each element.
- Parameters:
file- a file.- Returns:
- a big array filled with the content of the specified file.
- Throws:
IOException
-
loadIntsBig
Loads elements from a file given by a filename, storing them in a new big array.Note that the length of the returned big array will be computed dividing the specified file size by the number of bytes used to represent each element.
- Parameters:
filename- a filename.- Returns:
- a big array filled with the content of the specified file.
- Throws:
IOException
-
storeInts
public static void storeInts(int[][] array, long offset, long length, DataOutput dataOutput) throws IOException Stores an array fragment to a given data output.- Parameters:
array- an array whose elements will be written todataOutput.offset- the index of the first element ofarrayto be written.length- the number of elements ofarrayto be written.dataOutput- a data output.- Throws:
IOException
-
storeInts
Stores a big array to a given data output.- Parameters:
array- a big array whose elements will be written todataOutput.dataOutput- a data output.- Throws:
IOException
-
storeInts
Stores a big-array fragment to a file given by aFileobject.- Parameters:
array- a big array whose elements will be written tofile.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 filename.- Parameters:
array- a big array whose elements will be written to the filefilename.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 tofile.file- a file.- Throws:
IOException
-
storeInts
Stores a big array to a file given by a filename.- Parameters:
array- a big array whose elements will be written to the filefilename.filename- a filename.- Throws:
IOException
-
storeInts
public static void storeInts(it.unimi.dsi.fastutil.ints.IntIterator i, DataOutput dataOutput) throws IOException Stores the element returned by an iterator to a given data output.- Parameters:
i- an iterator whose output will be written todataOutput.dataOutput- a filename.- Throws:
IOException
-
storeInts
public static void storeInts(it.unimi.dsi.fastutil.ints.IntIterator i, File file) throws IOException Stores the element returned by an iterator to a file given by aFileobject.- Parameters:
i- an iterator whose output will be written tofile.file- a file.- Throws:
IOException
-
storeInts
public static void storeInts(it.unimi.dsi.fastutil.ints.IntIterator i, CharSequence filename) throws IOException Stores the element returned by an iterator to a file given by a filename.- Parameters:
i- an iterator whose output will be written to the filefilename.filename- a filename.- Throws:
IOException
-
asIntIterator
Wraps the given data input stream into an iterator.- Parameters:
dataInput- a data input.
-
asIntIterator
Wraps a file given by aFileobject into an iterator.- Parameters:
file- a file.- Throws:
IOException
-
asIntIterator
public static it.unimi.dsi.fastutil.ints.IntIterator asIntIterator(CharSequence filename) throws IOException Wraps a file given by a filename 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 filename into an iterable object.- Parameters:
filename- a filename.
-
loadFloats
public static int loadFloats(ReadableByteChannel channel, ByteOrder byteOrder, float[] array, int offset, int length) throws IOException Loads elements from a given readable channel, using the given byte order, storing them in a given array fragment.- Parameters:
channel- a readable channel.byteOrder- the byte order of the data fromchannel.array- an array which will be filled with data fromchannel.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
channel(it might be less thanlengthifchannelends). - Throws:
IOException
-
loadFloats
public static int loadFloats(ReadableByteChannel channel, ByteOrder byteOrder, float[] array) throws IOException Loads elements from a given readable channel, using the given byte order, storing them in a given array.- Parameters:
channel- a readable channel.byteOrder- the byte order of the data fromchannel.array- an array which will be filled with data fromchannel.- Returns:
- the number of elements actually read from
channel(it might be less than the array length ifchannelends). - Throws:
IOException
-
loadFloats
public static int loadFloats(File file, ByteOrder byteOrder, float[] array, int offset, int length) throws IOException Loads elements from a file given by aFileobject, using the given byte order, storing them in a given array fragment.- Parameters:
file- a file.byteOrder- the byte order of the data stored infile.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, ByteOrder byteOrder, float[] array, int offset, int length) throws IOException Loads elements from a file given by a filename, using the given byte order, storing them in a given array fragment.- Parameters:
filename- a filename.byteOrder- the byte order of the data stored in the filefilename.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, using the given byte order, storing them in a given array.- Parameters:
file- a file.byteOrder- the byte order of the data stored infile.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
public static int loadFloats(CharSequence filename, ByteOrder byteOrder, float[] array) throws IOException Loads elements from a file given by a filename, using the given byte order, storing them in a given array.- Parameters:
filename- a filename.byteOrder- the byte order of the data stored in the filefilename.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 aFileobject, using the given byte order, storing them in a new array.Note that the length of the returned array will be computed dividing the specified file size by the number of bytes used to represent each element.
- Parameters:
file- a file.byteOrder- the byte order of the data stored infile.- Returns:
- an array filled with the content of the specified file.
- Throws:
IOException
-
loadFloats
Loads elements from a file given by a filename, using the given byte order, storing them in a new array.Note that the length of the returned array will be computed dividing the specified file size by the number of bytes used to represent each element.
- Parameters:
filename- a filename.- Returns:
- an array filled with the content of the specified file.
- Throws:
IOException
-
storeFloats
public static void storeFloats(float[] array, int offset, int length, WritableByteChannel channel, ByteOrder byteOrder) throws IOException Stores an array fragment to a given writable channel, using the given byte order.- Parameters:
array- an array whose elements will be written tochannel.offset- the index of the first element ofarrayto be written.length- the number of elements ofarrayto be written.channel- a writable channel.byteOrder- the byte order to be used to store data inchannel.- Throws:
IOException
-
storeFloats
public static void storeFloats(float[] array, WritableByteChannel channel, ByteOrder byteOrder) throws IOException Stores an array to a given writable channel, using the given byte order.- Parameters:
array- an array whose elements will be written tochannel.channel- a writable channel.byteOrder- the byte order to be used to store data inchannel.- Throws:
IOException
-
storeFloats
public static void storeFloats(float[] array, int offset, int length, File file, ByteOrder byteOrder) throws IOException Stores an array fragment to a file given by aFileobject, using the given byte order.- Parameters:
array- an array whose elements will be written tofile.offset- the index of the first element ofarrayto be written.length- the number of elements ofarrayto be written.file- a file.byteOrder- the byte order to be used to store data infile.- Throws:
IOException
-
storeFloats
public static void storeFloats(float[] array, int offset, int length, CharSequence filename, ByteOrder byteOrder) throws IOException Stores an array fragment to a file given by a filename, using the given byte order.- Parameters:
array- an array whose elements will be written to the filefilename.offset- the index of the first element ofarrayto be written.length- the number of elements ofarrayto be written.filename- a filename.byteOrder- the byte order to be used to store data in the filefilename.- Throws:
IOException
-
storeFloats
Stores an array to a file given by aFileobject, using the given byte order.- Parameters:
array- an array whose elements will be written tofile.file- a file.byteOrder- the byte order to be used to store data infile.- Throws:
IOException
-
storeFloats
public static void storeFloats(float[] array, CharSequence filename, ByteOrder byteOrder) throws IOException Stores an array to a file given by a filename, using the given byte order.- Parameters:
array- an array whose elements will be written to the filefilename.filename- a filename.byteOrder- the byte order to be used to store data in the filefilename.- Throws:
IOException
-
loadFloats
public static long loadFloats(ReadableByteChannel channel, ByteOrder byteOrder, float[][] array, long offset, long length) throws IOException Loads elements from a given readable channel, using the given byte order, storing them in a given big-array fragment.- Parameters:
channel- a readable channel.byteOrder- the byte order of the data fromchannel.array- a big array which will be filled with data fromchannel.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
channel(it might be less thanlengthifchannelends). - Throws:
IOException
-
loadFloats
public static long loadFloats(ReadableByteChannel channel, ByteOrder byteOrder, float[][] array) throws IOException Loads elements from a given readable channel, using the given byte order, storing them in a given big array.- Parameters:
channel- a readable channel.byteOrder- the byte order of the data fromchannel.array- a big array which will be filled with data fromchannel.- Returns:
- the number of elements actually read from
channel(it might be less than the array length ifchannelends). - Throws:
IOException
-
loadFloats
public static long loadFloats(File file, ByteOrder byteOrder, float[][] array, long offset, long length) throws IOException Loads elements from a file given by aFileobject, using the given byte order, storing them in a given big-array fragment.- Parameters:
file- a file.byteOrder- the byte order of the data stored infile.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, ByteOrder byteOrder, float[][] array, long offset, long length) throws IOException Loads elements from a file given by a filename, using the given byte order, storing them in a given big-array fragment.- Parameters:
filename- a filename.byteOrder- the byte order of the data stored in the filefilename.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, using the given byte order, storing them in a given big array.- Parameters:
file- a file.byteOrder- the byte order of the data stored infile.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
public static long loadFloats(CharSequence filename, ByteOrder byteOrder, float[][] array) throws IOException Loads elements from a file given by a filename, using the given byte order, storing them in a given big array.- Parameters:
filename- a filename.byteOrder- the byte order of the data stored in the filefilename.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
-
loadFloatsBig
Loads elements from a file given by aFileobject, using the given byte order, storing them in a new big array.Note that the length of the returned big array will be computed dividing the specified file size by the number of bytes used to represent each element.
- Parameters:
file- a file.byteOrder- the byte order of the data stored infile.- Returns:
- a big array filled with the content of the specified file.
- Throws:
IOException
-
loadFloatsBig
public static float[][] loadFloatsBig(CharSequence filename, ByteOrder byteOrder) throws IOException Loads elements from a file given by a filename, using the given byte order, storing them in a new big array.Note that the length of the returned big array will be computed dividing the specified file size by the number of bytes used to represent each element.
- Parameters:
filename- a filename.byteOrder- the byte order of the data stored in the filefilename.- Returns:
- a big array filled with the content of the specified file.
- Throws:
IOException
-
storeFloats
public static void storeFloats(float[][] array, long offset, long length, WritableByteChannel channel, ByteOrder byteOrder) throws IOException Stores an array fragment to a given writable channel, using the given byte order.- Parameters:
array- an array whose elements will be written tochannel.offset- the index of the first element ofarrayto be written.length- the number of elements ofarrayto be written.channel- a writable channel.byteOrder- the byte order to be used to store data inchannel.- Throws:
IOException
-
storeFloats
public static void storeFloats(float[][] array, WritableByteChannel channel, ByteOrder byteOrder) throws IOException Stores a big array to a given writable channel, using the given byte order.- Parameters:
array- a big array whose elements will be written tochannel.channel- a writable channel.byteOrder- the byte order to be used to store data inchannel.- Throws:
IOException
-
storeFloats
public static void storeFloats(float[][] array, long offset, long length, File file, ByteOrder byteOrder) throws IOException Stores a big-array fragment to a file given by aFileobject, using the given byte order.- Parameters:
array- a big array whose elements will be written tofile.offset- the index of the first element ofarrayto be written.length- the number of elements ofarrayto be written.file- a file.byteOrder- the byte order to be used to store data infile.- Throws:
IOException
-
storeFloats
public static void storeFloats(float[][] array, long offset, long length, CharSequence filename, ByteOrder byteOrder) throws IOException Stores a big-array fragment to a file given by a filename, using the given byte order.- Parameters:
array- a big array whose elements will be written to the filefilename.offset- the index of the first element ofarrayto be written.length- the number of elements ofarrayto be written.filename- a filename.byteOrder- the byte order to be used to store data in the filefilename.- Throws:
IOException
-
storeFloats
Stores an array to a file given by aFileobject, using the given byte order.- Parameters:
array- an array whose elements will be written tofile.file- a file.byteOrder- the byte order to be used to store data infile.- Throws:
IOException
-
storeFloats
public static void storeFloats(float[][] array, CharSequence filename, ByteOrder byteOrder) throws IOException Stores a big array to a file given by a filename, using the given byte order.- Parameters:
array- a big array whose elements will be written to the filefilename.filename- a filename.byteOrder- the byte order to be used to store data in the filefilename.- Throws:
IOException
-
storeFloats
public static void storeFloats(it.unimi.dsi.fastutil.floats.FloatIterator i, WritableByteChannel channel, ByteOrder byteOrder) throws IOException Stores the element returned by an iterator to a given writable channel, using the given byte order.- Parameters:
i- an iterator whose output will be written tochannel.channel- a writable channel.byteOrder- the byte order to be used to store data inchannel.- Throws:
IOException
-
storeFloats
public static void storeFloats(it.unimi.dsi.fastutil.floats.FloatIterator i, File file, ByteOrder byteOrder) throws IOException Stores the element returned by an iterator to a file given by aFileobject, using the given byte order.- Parameters:
i- an iterator whose output will be written tofile.file- a file.byteOrder- the byte order to be used to store data infile.- Throws:
IOException
-
storeFloats
public static void storeFloats(it.unimi.dsi.fastutil.floats.FloatIterator i, CharSequence filename, ByteOrder byteOrder) throws IOException Stores the element returned by an iterator to a file given by a filename, using the given byte order.- Parameters:
i- an iterator whose output will be written to the filefilename.filename- a filename.byteOrder- the byte order to be used to store data in the filefilename.- Throws:
IOException
-
asFloatIterator
public static it.unimi.dsi.fastutil.floats.FloatIterator asFloatIterator(ReadableByteChannel channel, ByteOrder byteOrder) Wraps the given readable channel, using the given byte order, into an iterator.- Parameters:
channel- a readable channel.byteOrder- the byte order of the data fromchannel.
-
asFloatIterator
public static it.unimi.dsi.fastutil.floats.FloatIterator asFloatIterator(File file, ByteOrder byteOrder) throws IOException Wraps a file given by aFileobject, using the given byte order, into an iterator.- Parameters:
file- a file.byteOrder- the byte order of the data stored infile.- Throws:
IOException
-
asFloatIterator
public static it.unimi.dsi.fastutil.floats.FloatIterator asFloatIterator(CharSequence filename, ByteOrder byteOrder) throws IOException Wraps a file given by a filename, using the given byte order, into an iterator.- Parameters:
filename- a filename.byteOrder- the byte order of the data stored in the filefilename.- Throws:
IOException
-
asFloatIterable
public static it.unimi.dsi.fastutil.floats.FloatIterable asFloatIterable(File file, ByteOrder byteOrder) Wraps a file given by aFileobject, using the given byte order, into an iterable object.- Parameters:
file- a file.byteOrder- the byte order of the data stored infile.
-
asFloatIterable
public static it.unimi.dsi.fastutil.floats.FloatIterable asFloatIterable(CharSequence filename, ByteOrder byteOrder) Wraps a file given by a filename, using the given byte order, into an iterable object.- Parameters:
filename- a filename.byteOrder- the byte order of the data stored in the filefilename.
-
loadFloats
public static int loadFloats(DataInput dataInput, float[] array, int offset, int length) throws IOException Loads elements from a given data input, storing them in a given array fragment.- Parameters:
dataInput- a data input.array- an array which will be filled with data fromdataInput.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
dataInput(it might be less thanlengthifdataInputends). - Throws:
IOException
-
loadFloats
Loads elements from a given data input, storing them in a given array.- Parameters:
dataInput- a data input.array- an array which will be filled with data fromdataInput.- Returns:
- the number of elements actually read from
dataInput(it might be less than the array length ifdataInputends). - 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
-
loadFloats
Loads elements from a file given by aFileobject, storing them in a new array.Note that the length of the returned array will be computed dividing the specified file size by the number of bytes used to represent each element.
- Parameters:
file- a file.- Returns:
- an array filled with the content of the specified file.
- Throws:
IOException
-
loadFloats
Loads elements from a file given by a filename, storing them in a new array.Note that the length of the returned array will be computed dividing the specified file size by the number of bytes used to represent each element.
- Parameters:
filename- a filename.- Returns:
- an array filled with the content of the specified file.
- Throws:
IOException
-
storeFloats
public static void storeFloats(float[] array, int offset, int length, DataOutput dataOutput) throws IOException Stores an array fragment to a given data output.- Parameters:
array- an array whose elements will be written todataOutput.offset- the index of the first element ofarrayto be written.length- the number of elements ofarrayto be written.dataOutput- a data output.- Throws:
IOException
-
storeFloats
Stores an array to a given data output.- Parameters:
array- an array whose elements will be written todataOutput.dataOutput- a data output.- Throws:
IOException
-
storeFloats
Stores an array fragment to a file given by aFileobject.- Parameters:
array- an array whose elements will be written tofile.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 filename.- Parameters:
array- an array whose elements will be written to the filefilename.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 tofile.file- a file.- Throws:
IOException
-
storeFloats
Stores an array to a file given by a filename.- Parameters:
array- an array whose elements will be written to the filefilename.filename- a filename.- Throws:
IOException
-
loadFloats
public static long loadFloats(DataInput dataInput, float[][] array, long offset, long length) throws IOException Loads elements from a given data input, storing them in a given big-array fragment.- Parameters:
dataInput- a data input.array- a big array which will be filled with data fromdataInput.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
dataInput(it might be less thanlengthifdataInputends). - Throws:
IOException
-
loadFloats
Loads elements from a given data input, storing them in a given big array.- Parameters:
dataInput- a data input.array- a big array which will be filled with data fromdataInput.- Returns:
- the number of elements actually read from
dataInput(it might be less than the array length ifdataInputends). - 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- 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 big 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 big 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
-
loadFloatsBig
Loads elements from a file given by aFileobject, storing them in a new big array.Note that the length of the returned big array will be computed dividing the specified file size by the number of bytes used to represent each element.
- Parameters:
file- a file.- Returns:
- a big array filled with the content of the specified file.
- Throws:
IOException
-
loadFloatsBig
Loads elements from a file given by a filename, storing them in a new big array.Note that the length of the returned big array will be computed dividing the specified file size by the number of bytes used to represent each element.
- Parameters:
filename- a filename.- Returns:
- a big array filled with the content of the specified file.
- Throws:
IOException
-
storeFloats
public static void storeFloats(float[][] array, long offset, long length, DataOutput dataOutput) throws IOException Stores an array fragment to a given data output.- Parameters:
array- an array whose elements will be written todataOutput.offset- the index of the first element ofarrayto be written.length- the number of elements ofarrayto be written.dataOutput- a data output.- Throws:
IOException
-
storeFloats
Stores a big array to a given data output.- Parameters:
array- a big array whose elements will be written todataOutput.dataOutput- a data output.- Throws:
IOException
-
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 tofile.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 filename.- Parameters:
array- a big array whose elements will be written to the filefilename.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 tofile.file- a file.- Throws:
IOException
-
storeFloats
Stores a big array to a file given by a filename.- Parameters:
array- a big array whose elements will be written to the filefilename.filename- a filename.- Throws:
IOException
-
storeFloats
public static void storeFloats(it.unimi.dsi.fastutil.floats.FloatIterator i, DataOutput dataOutput) throws IOException Stores the element returned by an iterator to a given data output.- Parameters:
i- an iterator whose output will be written todataOutput.dataOutput- a filename.- Throws:
IOException
-
storeFloats
public static void storeFloats(it.unimi.dsi.fastutil.floats.FloatIterator i, File file) throws IOException Stores the element returned by an iterator to a file given by aFileobject.- Parameters:
i- an iterator whose output will be written tofile.file- a file.- Throws:
IOException
-
storeFloats
public static void storeFloats(it.unimi.dsi.fastutil.floats.FloatIterator i, CharSequence filename) throws IOException Stores the element returned by an iterator to a file given by a filename.- Parameters:
i- an iterator whose output will be written to the filefilename.filename- a filename.- Throws:
IOException
-
asFloatIterator
Wraps the given data input stream into an iterator.- Parameters:
dataInput- a data input.
-
asFloatIterator
public static it.unimi.dsi.fastutil.floats.FloatIterator asFloatIterator(File file) throws IOException Wraps a file given by aFileobject into an iterator.- Parameters:
file- a file.- Throws:
IOException
-
asFloatIterator
public static it.unimi.dsi.fastutil.floats.FloatIterator asFloatIterator(CharSequence filename) throws IOException Wraps a file given by a filename 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 filename into an iterable object.- Parameters:
filename- a filename.
-
loadLongs
public static int loadLongs(ReadableByteChannel channel, ByteOrder byteOrder, long[] array, int offset, int length) throws IOException Loads elements from a given readable channel, using the given byte order, storing them in a given array fragment.- Parameters:
channel- a readable channel.byteOrder- the byte order of the data fromchannel.array- an array which will be filled with data fromchannel.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
channel(it might be less thanlengthifchannelends). - Throws:
IOException
-
loadLongs
public static int loadLongs(ReadableByteChannel channel, ByteOrder byteOrder, long[] array) throws IOException Loads elements from a given readable channel, using the given byte order, storing them in a given array.- Parameters:
channel- a readable channel.byteOrder- the byte order of the data fromchannel.array- an array which will be filled with data fromchannel.- Returns:
- the number of elements actually read from
channel(it might be less than the array length ifchannelends). - Throws:
IOException
-
loadLongs
public static int loadLongs(File file, ByteOrder byteOrder, long[] array, int offset, int length) throws IOException Loads elements from a file given by aFileobject, using the given byte order, storing them in a given array fragment.- Parameters:
file- a file.byteOrder- the byte order of the data stored infile.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, ByteOrder byteOrder, long[] array, int offset, int length) throws IOException Loads elements from a file given by a filename, using the given byte order, storing them in a given array fragment.- Parameters:
filename- a filename.byteOrder- the byte order of the data stored in the filefilename.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, using the given byte order, storing them in a given array.- Parameters:
file- a file.byteOrder- the byte order of the data stored infile.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
public static int loadLongs(CharSequence filename, ByteOrder byteOrder, long[] array) throws IOException Loads elements from a file given by a filename, using the given byte order, storing them in a given array.- Parameters:
filename- a filename.byteOrder- the byte order of the data stored in the filefilename.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 aFileobject, using the given byte order, storing them in a new array.Note that the length of the returned array will be computed dividing the specified file size by the number of bytes used to represent each element.
- Parameters:
file- a file.byteOrder- the byte order of the data stored infile.- Returns:
- an array filled with the content of the specified file.
- Throws:
IOException
-
loadLongs
Loads elements from a file given by a filename, using the given byte order, storing them in a new array.Note that the length of the returned array will be computed dividing the specified file size by the number of bytes used to represent each element.
- Parameters:
filename- a filename.- Returns:
- an array filled with the content of the specified file.
- Throws:
IOException
-
storeLongs
public static void storeLongs(long[] array, int offset, int length, WritableByteChannel channel, ByteOrder byteOrder) throws IOException Stores an array fragment to a given writable channel, using the given byte order.- Parameters:
array- an array whose elements will be written tochannel.offset- the index of the first element ofarrayto be written.length- the number of elements ofarrayto be written.channel- a writable channel.byteOrder- the byte order to be used to store data inchannel.- Throws:
IOException
-
storeLongs
public static void storeLongs(long[] array, WritableByteChannel channel, ByteOrder byteOrder) throws IOException Stores an array to a given writable channel, using the given byte order.- Parameters:
array- an array whose elements will be written tochannel.channel- a writable channel.byteOrder- the byte order to be used to store data inchannel.- Throws:
IOException
-
storeLongs
public static void storeLongs(long[] array, int offset, int length, File file, ByteOrder byteOrder) throws IOException Stores an array fragment to a file given by aFileobject, using the given byte order.- Parameters:
array- an array whose elements will be written tofile.offset- the index of the first element ofarrayto be written.length- the number of elements ofarrayto be written.file- a file.byteOrder- the byte order to be used to store data infile.- Throws:
IOException
-
storeLongs
public static void storeLongs(long[] array, int offset, int length, CharSequence filename, ByteOrder byteOrder) throws IOException Stores an array fragment to a file given by a filename, using the given byte order.- Parameters:
array- an array whose elements will be written to the filefilename.offset- the index of the first element ofarrayto be written.length- the number of elements ofarrayto be written.filename- a filename.byteOrder- the byte order to be used to store data in the filefilename.- Throws:
IOException
-
storeLongs
Stores an array to a file given by aFileobject, using the given byte order.- Parameters:
array- an array whose elements will be written tofile.file- a file.byteOrder- the byte order to be used to store data infile.- Throws:
IOException
-
storeLongs
public static void storeLongs(long[] array, CharSequence filename, ByteOrder byteOrder) throws IOException Stores an array to a file given by a filename, using the given byte order.- Parameters:
array- an array whose elements will be written to the filefilename.filename- a filename.byteOrder- the byte order to be used to store data in the filefilename.- Throws:
IOException
-
loadLongs
public static long loadLongs(ReadableByteChannel channel, ByteOrder byteOrder, long[][] array, long offset, long length) throws IOException Loads elements from a given readable channel, using the given byte order, storing them in a given big-array fragment.- Parameters:
channel- a readable channel.byteOrder- the byte order of the data fromchannel.array- a big array which will be filled with data fromchannel.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
channel(it might be less thanlengthifchannelends). - Throws:
IOException
-
loadLongs
public static long loadLongs(ReadableByteChannel channel, ByteOrder byteOrder, long[][] array) throws IOException Loads elements from a given readable channel, using the given byte order, storing them in a given big array.- Parameters:
channel- a readable channel.byteOrder- the byte order of the data fromchannel.array- a big array which will be filled with data fromchannel.- Returns:
- the number of elements actually read from
channel(it might be less than the array length ifchannelends). - Throws:
IOException
-
loadLongs
public static long loadLongs(File file, ByteOrder byteOrder, long[][] array, long offset, long length) throws IOException Loads elements from a file given by aFileobject, using the given byte order, storing them in a given big-array fragment.- Parameters:
file- a file.byteOrder- the byte order of the data stored infile.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, ByteOrder byteOrder, long[][] array, long offset, long length) throws IOException Loads elements from a file given by a filename, using the given byte order, storing them in a given big-array fragment.- Parameters:
filename- a filename.byteOrder- the byte order of the data stored in the filefilename.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, using the given byte order, storing them in a given big array.- Parameters:
file- a file.byteOrder- the byte order of the data stored infile.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
public static long loadLongs(CharSequence filename, ByteOrder byteOrder, long[][] array) throws IOException Loads elements from a file given by a filename, using the given byte order, storing them in a given big array.- Parameters:
filename- a filename.byteOrder- the byte order of the data stored in the filefilename.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
-
loadLongsBig
Loads elements from a file given by aFileobject, using the given byte order, storing them in a new big array.Note that the length of the returned big array will be computed dividing the specified file size by the number of bytes used to represent each element.
- Parameters:
file- a file.byteOrder- the byte order of the data stored infile.- Returns:
- a big array filled with the content of the specified file.
- Throws:
IOException
-
loadLongsBig
Loads elements from a file given by a filename, using the given byte order, storing them in a new big array.Note that the length of the returned big array will be computed dividing the specified file size by the number of bytes used to represent each element.
- Parameters:
filename- a filename.byteOrder- the byte order of the data stored in the filefilename.- Returns:
- a big array filled with the content of the specified file.
- Throws:
IOException
-
storeLongs
public static void storeLongs(long[][] array, long offset, long length, WritableByteChannel channel, ByteOrder byteOrder) throws IOException Stores an array fragment to a given writable channel, using the given byte order.- Parameters:
array- an array whose elements will be written tochannel.offset- the index of the first element ofarrayto be written.length- the number of elements ofarrayto be written.channel- a writable channel.byteOrder- the byte order to be used to store data inchannel.- Throws:
IOException
-
storeLongs
public static void storeLongs(long[][] array, WritableByteChannel channel, ByteOrder byteOrder) throws IOException Stores a big array to a given writable channel, using the given byte order.- Parameters:
array- a big array whose elements will be written tochannel.channel- a writable channel.byteOrder- the byte order to be used to store data inchannel.- Throws:
IOException
-
storeLongs
public static void storeLongs(long[][] array, long offset, long length, File file, ByteOrder byteOrder) throws IOException Stores a big-array fragment to a file given by aFileobject, using the given byte order.- Parameters:
array- a big array whose elements will be written tofile.offset- the index of the first element ofarrayto be written.length- the number of elements ofarrayto be written.file- a file.byteOrder- the byte order to be used to store data infile.- Throws:
IOException
-
storeLongs
public static void storeLongs(long[][] array, long offset, long length, CharSequence filename, ByteOrder byteOrder) throws IOException Stores a big-array fragment to a file given by a filename, using the given byte order.- Parameters:
array- a big array whose elements will be written to the filefilename.offset- the index of the first element ofarrayto be written.length- the number of elements ofarrayto be written.filename- a filename.byteOrder- the byte order to be used to store data in the filefilename.- Throws:
IOException
-
storeLongs
Stores an array to a file given by aFileobject, using the given byte order.- Parameters:
array- an array whose elements will be written tofile.file- a file.byteOrder- the byte order to be used to store data infile.- Throws:
IOException
-
storeLongs
public static void storeLongs(long[][] array, CharSequence filename, ByteOrder byteOrder) throws IOException Stores a big array to a file given by a filename, using the given byte order.- Parameters:
array- a big array whose elements will be written to the filefilename.filename- a filename.byteOrder- the byte order to be used to store data in the filefilename.- Throws:
IOException
-
storeLongs
public static void storeLongs(it.unimi.dsi.fastutil.longs.LongIterator i, WritableByteChannel channel, ByteOrder byteOrder) throws IOException Stores the element returned by an iterator to a given writable channel, using the given byte order.- Parameters:
i- an iterator whose output will be written tochannel.channel- a writable channel.byteOrder- the byte order to be used to store data inchannel.- Throws:
IOException
-
storeLongs
public static void storeLongs(it.unimi.dsi.fastutil.longs.LongIterator i, File file, ByteOrder byteOrder) throws IOException Stores the element returned by an iterator to a file given by aFileobject, using the given byte order.- Parameters:
i- an iterator whose output will be written tofile.file- a file.byteOrder- the byte order to be used to store data infile.- Throws:
IOException
-
storeLongs
public static void storeLongs(it.unimi.dsi.fastutil.longs.LongIterator i, CharSequence filename, ByteOrder byteOrder) throws IOException Stores the element returned by an iterator to a file given by a filename, using the given byte order.- Parameters:
i- an iterator whose output will be written to the filefilename.filename- a filename.byteOrder- the byte order to be used to store data in the filefilename.- Throws:
IOException
-
asLongIterator
public static it.unimi.dsi.fastutil.longs.LongIterator asLongIterator(ReadableByteChannel channel, ByteOrder byteOrder) Wraps the given readable channel, using the given byte order, into an iterator.- Parameters:
channel- a readable channel.byteOrder- the byte order of the data fromchannel.
-
asLongIterator
public static it.unimi.dsi.fastutil.longs.LongIterator asLongIterator(File file, ByteOrder byteOrder) throws IOException Wraps a file given by aFileobject, using the given byte order, into an iterator.- Parameters:
file- a file.byteOrder- the byte order of the data stored infile.- Throws:
IOException
-
asLongIterator
public static it.unimi.dsi.fastutil.longs.LongIterator asLongIterator(CharSequence filename, ByteOrder byteOrder) throws IOException Wraps a file given by a filename, using the given byte order, into an iterator.- Parameters:
filename- a filename.byteOrder- the byte order of the data stored in the filefilename.- Throws:
IOException
-
asLongIterable
public static it.unimi.dsi.fastutil.longs.LongIterable asLongIterable(File file, ByteOrder byteOrder) Wraps a file given by aFileobject, using the given byte order, into an iterable object.- Parameters:
file- a file.byteOrder- the byte order of the data stored infile.
-
asLongIterable
public static it.unimi.dsi.fastutil.longs.LongIterable asLongIterable(CharSequence filename, ByteOrder byteOrder) Wraps a file given by a filename, using the given byte order, into an iterable object.- Parameters:
filename- a filename.byteOrder- the byte order of the data stored in the filefilename.
-
loadLongs
public static int loadLongs(DataInput dataInput, long[] array, int offset, int length) throws IOException Loads elements from a given data input, storing them in a given array fragment.- Parameters:
dataInput- a data input.array- an array which will be filled with data fromdataInput.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
dataInput(it might be less thanlengthifdataInputends). - Throws:
IOException
-
loadLongs
Loads elements from a given data input, storing them in a given array.- Parameters:
dataInput- a data input.array- an array which will be filled with data fromdataInput.- Returns:
- the number of elements actually read from
dataInput(it might be less than the array length ifdataInputends). - 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
-
loadLongs
Loads elements from a file given by aFileobject, storing them in a new array.Note that the length of the returned array will be computed dividing the specified file size by the number of bytes used to represent each element.
- Parameters:
file- a file.- Returns:
- an array filled with the content of the specified file.
- Throws:
IOException
-
loadLongs
Loads elements from a file given by a filename, storing them in a new array.Note that the length of the returned array will be computed dividing the specified file size by the number of bytes used to represent each element.
- Parameters:
filename- a filename.- Returns:
- an array filled with the content of the specified file.
- Throws:
IOException
-
storeLongs
public static void storeLongs(long[] array, int offset, int length, DataOutput dataOutput) throws IOException Stores an array fragment to a given data output.- Parameters:
array- an array whose elements will be written todataOutput.offset- the index of the first element ofarrayto be written.length- the number of elements ofarrayto be written.dataOutput- a data output.- Throws:
IOException
-
storeLongs
Stores an array to a given data output.- Parameters:
array- an array whose elements will be written todataOutput.dataOutput- a data output.- Throws:
IOException
-
storeLongs
Stores an array fragment to a file given by aFileobject.- Parameters:
array- an array whose elements will be written tofile.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 filename.- Parameters:
array- an array whose elements will be written to the filefilename.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 tofile.file- a file.- Throws:
IOException
-
storeLongs
Stores an array to a file given by a filename.- Parameters:
array- an array whose elements will be written to the filefilename.filename- a filename.- Throws:
IOException
-
loadLongs
public static long loadLongs(DataInput dataInput, long[][] array, long offset, long length) throws IOException Loads elements from a given data input, storing them in a given big-array fragment.- Parameters:
dataInput- a data input.array- a big array which will be filled with data fromdataInput.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
dataInput(it might be less thanlengthifdataInputends). - Throws:
IOException
-
loadLongs
Loads elements from a given data input, storing them in a given big array.- Parameters:
dataInput- a data input.array- a big array which will be filled with data fromdataInput.- Returns:
- the number of elements actually read from
dataInput(it might be less than the array length ifdataInputends). - 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- 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 big 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 big 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
-
loadLongsBig
Loads elements from a file given by aFileobject, storing them in a new big array.Note that the length of the returned big array will be computed dividing the specified file size by the number of bytes used to represent each element.
- Parameters:
file- a file.- Returns:
- a big array filled with the content of the specified file.
- Throws:
IOException
-
loadLongsBig
Loads elements from a file given by a filename, storing them in a new big array.Note that the length of the returned big array will be computed dividing the specified file size by the number of bytes used to represent each element.
- Parameters:
filename- a filename.- Returns:
- a big array filled with the content of the specified file.
- Throws:
IOException
-
storeLongs
public static void storeLongs(long[][] array, long offset, long length, DataOutput dataOutput) throws IOException Stores an array fragment to a given data output.- Parameters:
array- an array whose elements will be written todataOutput.offset- the index of the first element ofarrayto be written.length- the number of elements ofarrayto be written.dataOutput- a data output.- Throws:
IOException
-
storeLongs
Stores a big array to a given data output.- Parameters:
array- a big array whose elements will be written todataOutput.dataOutput- a data output.- Throws:
IOException
-
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 tofile.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 filename.- Parameters:
array- a big array whose elements will be written to the filefilename.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 tofile.file- a file.- Throws:
IOException
-
storeLongs
Stores a big array to a file given by a filename.- Parameters:
array- a big array whose elements will be written to the filefilename.filename- a filename.- Throws:
IOException
-
storeLongs
public static void storeLongs(it.unimi.dsi.fastutil.longs.LongIterator i, DataOutput dataOutput) throws IOException Stores the element returned by an iterator to a given data output.- Parameters:
i- an iterator whose output will be written todataOutput.dataOutput- a filename.- Throws:
IOException
-
storeLongs
public static void storeLongs(it.unimi.dsi.fastutil.longs.LongIterator i, File file) throws IOException Stores the element returned by an iterator to a file given by aFileobject.- Parameters:
i- an iterator whose output will be written tofile.file- a file.- Throws:
IOException
-
storeLongs
public static void storeLongs(it.unimi.dsi.fastutil.longs.LongIterator i, CharSequence filename) throws IOException Stores the element returned by an iterator to a file given by a filename.- Parameters:
i- an iterator whose output will be written to the filefilename.filename- a filename.- Throws:
IOException
-
asLongIterator
Wraps the given data input stream into an iterator.- Parameters:
dataInput- a data input.
-
asLongIterator
Wraps a file given by aFileobject into an iterator.- Parameters:
file- a file.- Throws:
IOException
-
asLongIterator
public static it.unimi.dsi.fastutil.longs.LongIterator asLongIterator(CharSequence filename) throws IOException Wraps a file given by a filename 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 filename into an iterable object.- Parameters:
filename- a filename.
-
loadDoubles
public static int loadDoubles(ReadableByteChannel channel, ByteOrder byteOrder, double[] array, int offset, int length) throws IOException Loads elements from a given readable channel, using the given byte order, storing them in a given array fragment.- Parameters:
channel- a readable channel.byteOrder- the byte order of the data fromchannel.array- an array which will be filled with data fromchannel.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
channel(it might be less thanlengthifchannelends). - Throws:
IOException
-
loadDoubles
public static int loadDoubles(ReadableByteChannel channel, ByteOrder byteOrder, double[] array) throws IOException Loads elements from a given readable channel, using the given byte order, storing them in a given array.- Parameters:
channel- a readable channel.byteOrder- the byte order of the data fromchannel.array- an array which will be filled with data fromchannel.- Returns:
- the number of elements actually read from
channel(it might be less than the array length ifchannelends). - Throws:
IOException
-
loadDoubles
public static int loadDoubles(File file, ByteOrder byteOrder, double[] array, int offset, int length) throws IOException Loads elements from a file given by aFileobject, using the given byte order, storing them in a given array fragment.- Parameters:
file- a file.byteOrder- the byte order of the data stored infile.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, ByteOrder byteOrder, double[] array, int offset, int length) throws IOException Loads elements from a file given by a filename, using the given byte order, storing them in a given array fragment.- Parameters:
filename- a filename.byteOrder- the byte order of the data stored in the filefilename.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, using the given byte order, storing them in a given array.- Parameters:
file- a file.byteOrder- the byte order of the data stored infile.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
public static int loadDoubles(CharSequence filename, ByteOrder byteOrder, double[] array) throws IOException Loads elements from a file given by a filename, using the given byte order, storing them in a given array.- Parameters:
filename- a filename.byteOrder- the byte order of the data stored in the filefilename.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 aFileobject, using the given byte order, storing them in a new array.Note that the length of the returned array will be computed dividing the specified file size by the number of bytes used to represent each element.
- Parameters:
file- a file.byteOrder- the byte order of the data stored infile.- Returns:
- an array filled with the content of the specified file.
- Throws:
IOException
-
loadDoubles
Loads elements from a file given by a filename, using the given byte order, storing them in a new array.Note that the length of the returned array will be computed dividing the specified file size by the number of bytes used to represent each element.
- Parameters:
filename- a filename.- Returns:
- an array filled with the content of the specified file.
- Throws:
IOException
-
storeDoubles
public static void storeDoubles(double[] array, int offset, int length, WritableByteChannel channel, ByteOrder byteOrder) throws IOException Stores an array fragment to a given writable channel, using the given byte order.- Parameters:
array- an array whose elements will be written tochannel.offset- the index of the first element ofarrayto be written.length- the number of elements ofarrayto be written.channel- a writable channel.byteOrder- the byte order to be used to store data inchannel.- Throws:
IOException
-
storeDoubles
public static void storeDoubles(double[] array, WritableByteChannel channel, ByteOrder byteOrder) throws IOException Stores an array to a given writable channel, using the given byte order.- Parameters:
array- an array whose elements will be written tochannel.channel- a writable channel.byteOrder- the byte order to be used to store data inchannel.- Throws:
IOException
-
storeDoubles
public static void storeDoubles(double[] array, int offset, int length, File file, ByteOrder byteOrder) throws IOException Stores an array fragment to a file given by aFileobject, using the given byte order.- Parameters:
array- an array whose elements will be written tofile.offset- the index of the first element ofarrayto be written.length- the number of elements ofarrayto be written.file- a file.byteOrder- the byte order to be used to store data infile.- Throws:
IOException
-
storeDoubles
public static void storeDoubles(double[] array, int offset, int length, CharSequence filename, ByteOrder byteOrder) throws IOException Stores an array fragment to a file given by a filename, using the given byte order.- Parameters:
array- an array whose elements will be written to the filefilename.offset- the index of the first element ofarrayto be written.length- the number of elements ofarrayto be written.filename- a filename.byteOrder- the byte order to be used to store data in the filefilename.- Throws:
IOException
-
storeDoubles
Stores an array to a file given by aFileobject, using the given byte order.- Parameters:
array- an array whose elements will be written tofile.file- a file.byteOrder- the byte order to be used to store data infile.- Throws:
IOException
-
storeDoubles
public static void storeDoubles(double[] array, CharSequence filename, ByteOrder byteOrder) throws IOException Stores an array to a file given by a filename, using the given byte order.- Parameters:
array- an array whose elements will be written to the filefilename.filename- a filename.byteOrder- the byte order to be used to store data in the filefilename.- Throws:
IOException
-
loadDoubles
public static long loadDoubles(ReadableByteChannel channel, ByteOrder byteOrder, double[][] array, long offset, long length) throws IOException Loads elements from a given readable channel, using the given byte order, storing them in a given big-array fragment.- Parameters:
channel- a readable channel.byteOrder- the byte order of the data fromchannel.array- a big array which will be filled with data fromchannel.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
channel(it might be less thanlengthifchannelends). - Throws:
IOException
-
loadDoubles
public static long loadDoubles(ReadableByteChannel channel, ByteOrder byteOrder, double[][] array) throws IOException Loads elements from a given readable channel, using the given byte order, storing them in a given big array.- Parameters:
channel- a readable channel.byteOrder- the byte order of the data fromchannel.array- a big array which will be filled with data fromchannel.- Returns:
- the number of elements actually read from
channel(it might be less than the array length ifchannelends). - Throws:
IOException
-
loadDoubles
public static long loadDoubles(File file, ByteOrder byteOrder, double[][] array, long offset, long length) throws IOException Loads elements from a file given by aFileobject, using the given byte order, storing them in a given big-array fragment.- Parameters:
file- a file.byteOrder- the byte order of the data stored infile.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, ByteOrder byteOrder, double[][] array, long offset, long length) throws IOException Loads elements from a file given by a filename, using the given byte order, storing them in a given big-array fragment.- Parameters:
filename- a filename.byteOrder- the byte order of the data stored in the filefilename.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, using the given byte order, storing them in a given big array.- Parameters:
file- a file.byteOrder- the byte order of the data stored infile.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
public static long loadDoubles(CharSequence filename, ByteOrder byteOrder, double[][] array) throws IOException Loads elements from a file given by a filename, using the given byte order, storing them in a given big array.- Parameters:
filename- a filename.byteOrder- the byte order of the data stored in the filefilename.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
-
loadDoublesBig
Loads elements from a file given by aFileobject, using the given byte order, storing them in a new big array.Note that the length of the returned big array will be computed dividing the specified file size by the number of bytes used to represent each element.
- Parameters:
file- a file.byteOrder- the byte order of the data stored infile.- Returns:
- a big array filled with the content of the specified file.
- Throws:
IOException
-
loadDoublesBig
public static double[][] loadDoublesBig(CharSequence filename, ByteOrder byteOrder) throws IOException Loads elements from a file given by a filename, using the given byte order, storing them in a new big array.Note that the length of the returned big array will be computed dividing the specified file size by the number of bytes used to represent each element.
- Parameters:
filename- a filename.byteOrder- the byte order of the data stored in the filefilename.- Returns:
- a big array filled with the content of the specified file.
- Throws:
IOException
-
storeDoubles
public static void storeDoubles(double[][] array, long offset, long length, WritableByteChannel channel, ByteOrder byteOrder) throws IOException Stores an array fragment to a given writable channel, using the given byte order.- Parameters:
array- an array whose elements will be written tochannel.offset- the index of the first element ofarrayto be written.length- the number of elements ofarrayto be written.channel- a writable channel.byteOrder- the byte order to be used to store data inchannel.- Throws:
IOException
-
storeDoubles
public static void storeDoubles(double[][] array, WritableByteChannel channel, ByteOrder byteOrder) throws IOException Stores a big array to a given writable channel, using the given byte order.- Parameters:
array- a big array whose elements will be written tochannel.channel- a writable channel.byteOrder- the byte order to be used to store data inchannel.- Throws:
IOException
-
storeDoubles
public static void storeDoubles(double[][] array, long offset, long length, File file, ByteOrder byteOrder) throws IOException Stores a big-array fragment to a file given by aFileobject, using the given byte order.- Parameters:
array- a big array whose elements will be written tofile.offset- the index of the first element ofarrayto be written.length- the number of elements ofarrayto be written.file- a file.byteOrder- the byte order to be used to store data infile.- Throws:
IOException
-
storeDoubles
public static void storeDoubles(double[][] array, long offset, long length, CharSequence filename, ByteOrder byteOrder) throws IOException Stores a big-array fragment to a file given by a filename, using the given byte order.- Parameters:
array- a big array whose elements will be written to the filefilename.offset- the index of the first element ofarrayto be written.length- the number of elements ofarrayto be written.filename- a filename.byteOrder- the byte order to be used to store data in the filefilename.- Throws:
IOException
-
storeDoubles
public static void storeDoubles(double[][] array, File file, ByteOrder byteOrder) throws IOException Stores an array to a file given by aFileobject, using the given byte order.- Parameters:
array- an array whose elements will be written tofile.file- a file.byteOrder- the byte order to be used to store data infile.- Throws:
IOException
-
storeDoubles
public static void storeDoubles(double[][] array, CharSequence filename, ByteOrder byteOrder) throws IOException Stores a big array to a file given by a filename, using the given byte order.- Parameters:
array- a big array whose elements will be written to the filefilename.filename- a filename.byteOrder- the byte order to be used to store data in the filefilename.- Throws:
IOException
-
storeDoubles
public static void storeDoubles(it.unimi.dsi.fastutil.doubles.DoubleIterator i, WritableByteChannel channel, ByteOrder byteOrder) throws IOException Stores the element returned by an iterator to a given writable channel, using the given byte order.- Parameters:
i- an iterator whose output will be written tochannel.channel- a writable channel.byteOrder- the byte order to be used to store data inchannel.- Throws:
IOException
-
storeDoubles
public static void storeDoubles(it.unimi.dsi.fastutil.doubles.DoubleIterator i, File file, ByteOrder byteOrder) throws IOException Stores the element returned by an iterator to a file given by aFileobject, using the given byte order.- Parameters:
i- an iterator whose output will be written tofile.file- a file.byteOrder- the byte order to be used to store data infile.- Throws:
IOException
-
storeDoubles
public static void storeDoubles(it.unimi.dsi.fastutil.doubles.DoubleIterator i, CharSequence filename, ByteOrder byteOrder) throws IOException Stores the element returned by an iterator to a file given by a filename, using the given byte order.- Parameters:
i- an iterator whose output will be written to the filefilename.filename- a filename.byteOrder- the byte order to be used to store data in the filefilename.- Throws:
IOException
-
asDoubleIterator
public static it.unimi.dsi.fastutil.doubles.DoubleIterator asDoubleIterator(ReadableByteChannel channel, ByteOrder byteOrder) Wraps the given readable channel, using the given byte order, into an iterator.- Parameters:
channel- a readable channel.byteOrder- the byte order of the data fromchannel.
-
asDoubleIterator
public static it.unimi.dsi.fastutil.doubles.DoubleIterator asDoubleIterator(File file, ByteOrder byteOrder) throws IOException Wraps a file given by aFileobject, using the given byte order, into an iterator.- Parameters:
file- a file.byteOrder- the byte order of the data stored infile.- Throws:
IOException
-
asDoubleIterator
public static it.unimi.dsi.fastutil.doubles.DoubleIterator asDoubleIterator(CharSequence filename, ByteOrder byteOrder) throws IOException Wraps a file given by a filename, using the given byte order, into an iterator.- Parameters:
filename- a filename.byteOrder- the byte order of the data stored in the filefilename.- Throws:
IOException
-
asDoubleIterable
public static it.unimi.dsi.fastutil.doubles.DoubleIterable asDoubleIterable(File file, ByteOrder byteOrder) Wraps a file given by aFileobject, using the given byte order, into an iterable object.- Parameters:
file- a file.byteOrder- the byte order of the data stored infile.
-
asDoubleIterable
public static it.unimi.dsi.fastutil.doubles.DoubleIterable asDoubleIterable(CharSequence filename, ByteOrder byteOrder) Wraps a file given by a filename, using the given byte order, into an iterable object.- Parameters:
filename- a filename.byteOrder- the byte order of the data stored in the filefilename.
-
loadDoubles
public static int loadDoubles(DataInput dataInput, double[] array, int offset, int length) throws IOException Loads elements from a given data input, storing them in a given array fragment.- Parameters:
dataInput- a data input.array- an array which will be filled with data fromdataInput.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
dataInput(it might be less thanlengthifdataInputends). - Throws:
IOException
-
loadDoubles
Loads elements from a given data input, storing them in a given array.- Parameters:
dataInput- a data input.array- an array which will be filled with data fromdataInput.- Returns:
- the number of elements actually read from
dataInput(it might be less than the array length ifdataInputends). - 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
-
loadDoubles
Loads elements from a file given by aFileobject, storing them in a new array.Note that the length of the returned array will be computed dividing the specified file size by the number of bytes used to represent each element.
- Parameters:
file- a file.- Returns:
- an array filled with the content of the specified file.
- Throws:
IOException
-
loadDoubles
Loads elements from a file given by a filename, storing them in a new array.Note that the length of the returned array will be computed dividing the specified file size by the number of bytes used to represent each element.
- Parameters:
filename- a filename.- Returns:
- an array filled with the content of the specified file.
- Throws:
IOException
-
storeDoubles
public static void storeDoubles(double[] array, int offset, int length, DataOutput dataOutput) throws IOException Stores an array fragment to a given data output.- Parameters:
array- an array whose elements will be written todataOutput.offset- the index of the first element ofarrayto be written.length- the number of elements ofarrayto be written.dataOutput- a data output.- Throws:
IOException
-
storeDoubles
Stores an array to a given data output.- Parameters:
array- an array whose elements will be written todataOutput.dataOutput- a data output.- Throws:
IOException
-
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 tofile.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 filename.- Parameters:
array- an array whose elements will be written to the filefilename.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 tofile.file- a file.- Throws:
IOException
-
storeDoubles
Stores an array to a file given by a filename.- Parameters:
array- an array whose elements will be written to the filefilename.filename- a filename.- Throws:
IOException
-
loadDoubles
public static long loadDoubles(DataInput dataInput, double[][] array, long offset, long length) throws IOException Loads elements from a given data input, storing them in a given big-array fragment.- Parameters:
dataInput- a data input.array- a big array which will be filled with data fromdataInput.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
dataInput(it might be less thanlengthifdataInputends). - Throws:
IOException
-
loadDoubles
Loads elements from a given data input, storing them in a given big array.- Parameters:
dataInput- a data input.array- a big array which will be filled with data fromdataInput.- Returns:
- the number of elements actually read from
dataInput(it might be less than the array length ifdataInputends). - 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- 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 big 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 big 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
-
loadDoublesBig
Loads elements from a file given by aFileobject, storing them in a new big array.Note that the length of the returned big array will be computed dividing the specified file size by the number of bytes used to represent each element.
- Parameters:
file- a file.- Returns:
- a big array filled with the content of the specified file.
- Throws:
IOException
-
loadDoublesBig
Loads elements from a file given by a filename, storing them in a new big array.Note that the length of the returned big array will be computed dividing the specified file size by the number of bytes used to represent each element.
- Parameters:
filename- a filename.- Returns:
- a big array filled with the content of the specified file.
- Throws:
IOException
-
storeDoubles
public static void storeDoubles(double[][] array, long offset, long length, DataOutput dataOutput) throws IOException Stores an array fragment to a given data output.- Parameters:
array- an array whose elements will be written todataOutput.offset- the index of the first element ofarrayto be written.length- the number of elements ofarrayto be written.dataOutput- a data output.- Throws:
IOException
-
storeDoubles
Stores a big array to a given data output.- Parameters:
array- a big array whose elements will be written todataOutput.dataOutput- a data output.- Throws:
IOException
-
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 tofile.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 filename.- Parameters:
array- a big array whose elements will be written to the filefilename.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 tofile.file- a file.- Throws:
IOException
-
storeDoubles
Stores a big array to a file given by a filename.- Parameters:
array- a big array whose elements will be written to the filefilename.filename- a filename.- Throws:
IOException
-
storeDoubles
public static void storeDoubles(it.unimi.dsi.fastutil.doubles.DoubleIterator i, DataOutput dataOutput) throws IOException Stores the element returned by an iterator to a given data output.- Parameters:
i- an iterator whose output will be written todataOutput.dataOutput- a filename.- Throws:
IOException
-
storeDoubles
public static void storeDoubles(it.unimi.dsi.fastutil.doubles.DoubleIterator i, File file) throws IOException Stores the element returned by an iterator to a file given by aFileobject.- Parameters:
i- an iterator whose output will be written tofile.file- a file.- Throws:
IOException
-
storeDoubles
public static void storeDoubles(it.unimi.dsi.fastutil.doubles.DoubleIterator i, CharSequence filename) throws IOException Stores the element returned by an iterator to a file given by a filename.- Parameters:
i- an iterator whose output will be written to the filefilename.filename- a filename.- Throws:
IOException
-
asDoubleIterator
Wraps the given data input stream into an iterator.- Parameters:
dataInput- a data input.
-
asDoubleIterator
public static it.unimi.dsi.fastutil.doubles.DoubleIterator asDoubleIterator(File file) throws IOException Wraps a file given by aFileobject into an iterator.- Parameters:
file- a file.- Throws:
IOException
-
asDoubleIterator
public static it.unimi.dsi.fastutil.doubles.DoubleIterator asDoubleIterator(CharSequence filename) throws IOException Wraps a file given by a filename 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 filename into an iterable object.- Parameters:
filename- a filename.
-