com.imagero.uio
Class RandomAccessFactory

java.lang.Object
  extended bycom.imagero.uio.RandomAccessFactory

Deprecated. and replaced with UIOStreamBuilder

public class RandomAccessFactory
extends java.lang.Object

Create RandomAccess/RandomAccess from various resources.
Since all classes in uio and buffer packages was made public, RandomAccesFactory is no more indispensable and gives not all possibilities. However ist is very useful as example.

See Also:
Date: 12.11.2003 Time: 19:32:15

Field Summary
static int BIG_ENDIAN
          Deprecated.  
static int LITTLE_ENDIAN
          Deprecated.  
 
Constructor Summary
RandomAccessFactory()
          Deprecated.  
 
Method Summary
static RandomAccessByteArray create(byte[] data)
          Deprecated. create RandomAccess with BIG-ENDIAN byte order from specified byte array
static RandomAccessByteArray create(byte[] data, int byteOrder)
          Deprecated. create RandomAccess from specified byte array
static RandomAccessByteArray create(byte[] data, int off, int length)
          Deprecated. create RandomAccess with BIG-ENDIAN byte order from specified segment of byte array
static RandomAccessByteArray create(byte[] data, int off, int length, int byteOrder)
          Deprecated. create RandomAccess from specified segment of byte array
static RandomAccess create(java.io.File f)
          Deprecated. create RandomAccess (with BIG_ENDIAN byte order) to read from and write to specified file.
static RandomAccess create(java.io.File f, int byteOrder)
          Deprecated. create RandomAccess to read from and write to specified file.
static RandomAccess create(java.io.File file, long offset)
          Deprecated. create RandomAccess with BIG-ENDIAN byte order to read from and write to specified file starting from specified offset in file.
static RandomAccess create(java.io.File file, long offset, int byteOrder)
          Deprecated. create RandomAccess to read from and write to specified file starting from specified offset in file.
static RandomAccess create(java.io.File file, long offset, long length)
          Deprecated. create RandomAccess with BIG-ENDIAN byte order to read from/write to specified segment of the file.
static RandomAccess create(java.io.File file, long offset, long length, int byteOrder)
          Deprecated. create RandomAccess to read from/write to specified segment of the file.
static RandomAccess create(java.io.RandomAccessFile raf)
          Deprecated. create RandomAccess with BIG-ENDIAN byte order from specified RandomAccessFile
static RandomAccess create(java.io.RandomAccessFile raf, int byteOrder)
          Deprecated. create RandomAccess from specified RandomAccessFile
static RandomAccess create(java.lang.String name)
          Deprecated. create RandomAccess with BIG-ENDIAN byte order to read from and write to file with specified name.
static RandomAccess create(java.lang.String name, int byteOrder)
          Deprecated. create RandomAccess to read from and write to file with specified name.
static RandomAccess create(java.lang.String name, long offset, long length)
          Deprecated. create RandomAccess with BIG-ENDIAN byte order to read from/write to segment of the file with specified name.
static RandomAccess create(java.lang.String name, long offset, long length, int byteOrder)
          Deprecated. create RandomAccess to read from/write to segment of the file with specified name.
static RandomAccessBuffer createBuffered(Buffer[] ds)
          Deprecated. create RandomAccess from Buffer array with default java byte order (BIG_ENDIAN) Same as create(new DefaultBufferManager(buffer));
static RandomAccessBuffer createBuffered(Buffer[] ds, int byteOrder)
          Deprecated. create RandomAccess from Buffer array.
static RandomAccessBuffer createBuffered(char[] data)
          Deprecated. Create RandomAccess from char array
static RandomAccessBuffer createBuffered(char[] data, int off, int length)
          Deprecated. Create RandomAccess from char array
static RandomAccessBuffer createBuffered(double[] data)
          Deprecated. Create RandomAccess from double array
static RandomAccessBuffer createBuffered(double[] data, int off, int length)
          Deprecated. Create RandomAccess from double array
static RandomAccessBuffer createBuffered(java.io.File file, long offset, long length)
          Deprecated. create buffered RandomAccess with BIG-ENDIAN byte order to read from/write to specified segment of the file.
static RandomAccessBuffer createBuffered(java.io.File file, long offset, long length, int byteOrder)
          Deprecated. create bufferer RandomAccess to read from/write to specified segment of the file.
static RandomAccessBuffer createBuffered(float[] data)
          Deprecated. Create RandomAccess from int array
static RandomAccessBuffer createBuffered(float[] data, int off, int length)
          Deprecated. Create RandomAccess from int array
static RandomAccessBuffer createBuffered(int[] data)
          Deprecated. Create RandomAccess from int array
static RandomAccessBuffer createBuffered(int[] data, int off, int length)
          Deprecated. Create RandomAccess from int array
static RandomAccessBuffer createBuffered(long[] data)
          Deprecated. Create RandomAccess from long array
static RandomAccessBuffer createBuffered(long[] data, int off, int length)
          Deprecated. Create RandomAccess from long array
static RandomAccessBuffer createBuffered(MutableBufferManager sm)
          Deprecated. create RandomAccess from MutableBufferManager with network byte order (BIG_ENDIAN)
static RandomAccessBuffer createBuffered(MutableBufferManager sm, int byteOrder)
          Deprecated. create RandomAccess from BufferManager
static RandomAccessBuffer createBuffered(java.io.OutputStream out)
          Deprecated. create RandomAccess with BIG-ENDIAN byte order from specified RandomAccessFile
static RandomAccessBuffer createBuffered(java.io.RandomAccessFile raf)
          Deprecated. create RandomAccess with BIG-ENDIAN byte order from specified RandomAccessFile
static RandomAccessBuffer createBuffered(java.io.RandomAccessFile raf, int byteOrder)
          Deprecated. create buffered RandomAccess from specified RandomAccessFile
static RandomAccessBuffer createBuffered(RandomAccess ro, long offset, int length)
          Deprecated. create RandomAccess from specified RandomAccess.
static RandomAccessBuffer createBuffered(short[] data)
          Deprecated. Create RandomAccess from short array
static RandomAccessBuffer createBuffered(short[] data, int off, int length)
          Deprecated. Create RandomAccess from short array
static RandomAccessBuffer createBuffered(java.lang.String name, long offset, long length)
          Deprecated. create buffered RandomAccess with BIG-ENDIAN byte order to read from/write to segment of the file with specified name.
static RandomAccessBuffer createBuffered(java.lang.String name, long offset, long length, int byteOrder)
          Deprecated. create buffered RandomAccess to read from/write to segment of the file with specified name.
static RandomAccessRO createBufferedRO(Buffer[] ds)
          Deprecated. create RandomAccessRO from Buffer array with #BIG_ENDIAN byte order.
static RandomAccessBufferRO createBufferedRO(Buffer[] ds, int byteOrder)
          Deprecated. create RandomAccessRO from Buffer array.
static RandomAccessBufferRO createBufferedRO(BufferManager bm)
          Deprecated. create RandomAccessRO from BufferManager
static RandomAccessBufferRO createBufferedRO(BufferManager sm, int byteOrder)
          Deprecated. create RandomAccessRO from BufferManager
static RandomAccessBufferRO createBufferedRO(char[] data)
          Deprecated. Create RandomAccessRO from char array
static RandomAccessBufferRO createBufferedRO(char[] data, int off, int length)
          Deprecated. Create RandomAccessRO from char array
static RandomAccessBufferRO createBufferedRO(double[] data)
          Deprecated. Create RandomAccessRO from double array
static RandomAccessBufferRO createBufferedRO(double[] data, int off, int length)
          Deprecated. Create RandomAccessRO from double array
static RandomAccessRO createBufferedRO(java.io.File file, long offset, long length)
          Deprecated. create buffered RandomAccessRO with BIG-ENDIAN byte order to read from specified segment of the file.
static RandomAccessRO createBufferedRO(java.io.File file, long offset, long length, int byteOrder)
          Deprecated. create buffered RandomAccessRO to read from specified segment of the file.
static RandomAccessBufferRO createBufferedRO(float[] data)
          Deprecated. Create RandomAccessRO from int array
static RandomAccessBufferRO createBufferedRO(float[] data, int off, int length)
          Deprecated. Create RandomAccessRO from int array
static RandomAccessBufferRO createBufferedRO(java.io.InputStream in)
          Deprecated. create RandomAccessRO from InputStream with default for java byte order (BIG_ENDIAN).
static RandomAccessBufferRO createBufferedRO(java.io.InputStream in, int byteOrder)
          Deprecated. create RandomAccessRO from InputStream.
static RandomAccessBufferRO createBufferedRO(int[] data)
          Deprecated. Create RandomAccessRO from int array
static RandomAccessBufferRO createBufferedRO(int[] data, int off, int length)
          Deprecated. Create RandomAccessRO from int array
static RandomAccessBufferRO createBufferedRO(long[] data)
          Deprecated. Create RandomAccessRO from long array
static RandomAccessBufferRO createBufferedRO(long[] data, int off, int length)
          Deprecated. Create RandomAccessRO from long array
static RandomAccessBufferRO createBufferedRO(java.io.RandomAccessFile raf)
          Deprecated. create buffered RandomAccessRO with BIG-ENDIAN byte order from specified RandomAccessFile
static RandomAccessBufferRO createBufferedRO(java.io.RandomAccessFile raf, int byteOrder)
          Deprecated. create buffered RandomAccessRO from specified RandomAccessFile
static RandomAccessBufferRO createBufferedRO(RandomAccessRO ro, long offset, int length)
          Deprecated. create RandomAccessRO from specified RandomAccessRO.
static RandomAccessBufferRO createBufferedRO(short[] data)
          Deprecated. Create RandomAccessRO from short array
static RandomAccessBufferRO createBufferedRO(short[] data, int off, int length)
          Deprecated. Create RandomAccessRO from short array
static RandomAccessRO createBufferedRO(java.lang.String name, long offset, long length)
          Deprecated. create RandomAccessRO with BIG-ENDIAN byte order to read from segment of the file with specified name.
static RandomAccessRO createBufferedRO(java.lang.String name, long offset, long length, int byteOrder)
          Deprecated. create buffered RandomAccessRO to read from segment of the file with specified name.
static RandomAccessBufferRO createBufferedRO(java.net.URL url)
          Deprecated. create RandomAccessRO (buffered) from specified URL.
static RandomAccessByteArrayRO createRO(byte[] data)
          Deprecated. create RandomAccessRO with BIG-ENDIAN byte order from specified byte array
static RandomAccessByteArrayRO createRO(byte[] data, int byteOrder)
          Deprecated. create RandomAccessRO from specified byte array
static RandomAccessByteArrayRO createRO(byte[] data, int off, int length)
          Deprecated. create RandomAccessRO with BIG-ENDIAN byte order from specified segment of byte array
static RandomAccessByteArrayRO createRO(byte[] data, int off, int length, int byteOrder)
          Deprecated. create RandomAccessRO from specified segment of byte array
static RandomAccessRO createRO(java.io.File f)
          Deprecated. create RandomAccessRO with BIG-ENDIAN byte order to read from to specified file.
static RandomAccessRO createRO(java.io.File f, int byteOrder)
          Deprecated. create RandomAccessRO to read from to specified file.
static RandomAccessRO createRO(java.io.File file, long offset)
          Deprecated. create RandomAccessRO with BIG-ENDIAN byte order to read from specified file starting from specified offset in file.
static RandomAccessRO createRO(java.io.File file, long offset, int byteOrder)
          Deprecated. create RandomAccessRO to read from specified file starting from specified offset in file.
static RandomAccessRO createRO(java.io.File file, long offset, long length)
          Deprecated. create RandomAccessRO with BIG-ENDIAN byte order to read from specified segment of the file.
static RandomAccessRO createRO(java.io.File file, long offset, long length, int byteOrder)
          Deprecated. create RandomAccessRO to read from specified segment of the file.
static RandomAccessRO createRO(java.io.RandomAccessFile raf)
          Deprecated. create RandomAccessRO with BIG-ENDIAN byte order from specified RandomAccessFile
static RandomAccessRO createRO(java.io.RandomAccessFile raf, int byteOrder)
          Deprecated. create RandomAccessRO from specified RandomAccessFile
static RandomAccessRO createRO(java.lang.String name)
          Deprecated. create RandomAccessRO with BIG-ENDIAN byte order to read data from file with specified name.
static RandomAccessRO createRO(java.lang.String name, int byteOrder)
          Deprecated. create RandomAccessRO to read data from file with specified name.
static RandomAccessRO createRO(java.lang.String name, long offset, long length)
          Deprecated. create RandomAccessRO with BIG-ENDIAN byte order to read from segment of the file with specified name.
static RandomAccessRO createRO(java.lang.String name, long offset, long length, int byteOrder)
          Deprecated. create RandomAccessRO to read from segment of the file with specified name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BIG_ENDIAN

public static final int BIG_ENDIAN
Deprecated. 
See Also:
Constant Field Values

LITTLE_ENDIAN

public static final int LITTLE_ENDIAN
Deprecated. 
See Also:
Constant Field Values
Constructor Detail

RandomAccessFactory

public RandomAccessFactory()
Deprecated. 
Method Detail

createBuffered

public static RandomAccessBuffer createBuffered(MutableBufferManager sm,
                                                int byteOrder)
                                         throws java.io.IOException
Deprecated. 
create RandomAccess from BufferManager

Parameters:
sm - BufferManager
byteOrder - if AUTO_ENDIAN then byte order is detected. If detection failed then byteOrder is set to BIG_ENDIAN
Returns:
RandomAccess
Throws:
java.io.IOException
See Also:
RandomAccess, BufferManager, DefaultBufferManager, InputStreamBufferManager, Buffer

createBuffered

public static RandomAccessBuffer createBuffered(MutableBufferManager sm)
                                         throws java.io.IOException
Deprecated. 
create RandomAccess from MutableBufferManager with network byte order (BIG_ENDIAN)

Parameters:
sm - MutableBufferManager
Returns:
RandomAccess
Throws:
java.io.IOException
See Also:
RandomAccess, BufferManager, DefaultBufferManager, InputStreamBufferManager, Buffer

createBufferedRO

public static RandomAccessBufferRO createBufferedRO(BufferManager sm,
                                                    int byteOrder)
                                             throws java.io.IOException
Deprecated. 
create RandomAccessRO from BufferManager

Parameters:
sm - BufferManager
byteOrder - if AUTO_ENDIAN then byte order is detected. If detection failed then byteOrder is set to BIG_ENDIAN
Returns:
RandomAccessRO
Throws:
java.io.IOException
See Also:
RandomAccessRO, BufferManager, DefaultBufferManager, InputStreamBufferManager, Buffer

createBufferedRO

public static RandomAccessBufferRO createBufferedRO(BufferManager bm)
                                             throws java.io.IOException
Deprecated. 
create RandomAccessRO from BufferManager

Parameters:
bm - BufferManager
Returns:
RandomAccessRO
Throws:
java.io.IOException
See Also:
RandomAccessRO, BufferManager, DefaultBufferManager, InputStreamBufferManager, Buffer

createBuffered

public static RandomAccessBuffer createBuffered(Buffer[] ds,
                                                int byteOrder)
                                         throws java.io.IOException
Deprecated. 
create RandomAccess from Buffer array. Same as create(new DefaultBufferManager(buffer));

Parameters:
ds - array of Buffers
byteOrder - if AUTO_ENDIAN then byte order is detected. If detection failed then byteOrder is set to BIG_ENDIAN
Returns:
RandomAccess
Throws:
java.io.IOException
See Also:
RandomAccess, BufferManager, DefaultBufferManager, InputStreamBufferManager, Buffer

createBuffered

public static RandomAccessBuffer createBuffered(Buffer[] ds)
                                         throws java.io.IOException
Deprecated. 
create RandomAccess from Buffer array with default java byte order (BIG_ENDIAN) Same as create(new DefaultBufferManager(buffer));

Parameters:
ds - Buffer array
Returns:
RandomAccess
Throws:
java.io.IOException
See Also:
RandomAccess, BufferManager, DefaultBufferManager, InputStreamBufferManager, Buffer

createBufferedRO

public static RandomAccessBufferRO createBufferedRO(Buffer[] ds,
                                                    int byteOrder)
                                             throws java.io.IOException
Deprecated. 
create RandomAccessRO from Buffer array. Same as createRO(new DefaultBufferManager(buffer));

Parameters:
ds - Buffer array
byteOrder - if AUTO_ENDIAN then byte order is detected. If detection failed then byteOrder is set to BIG_ENDIAN
Returns:
RandomAccessRO
Throws:
java.io.IOException
See Also:
RandomAccessRO, BufferManager, DefaultBufferManager, InputStreamBufferManager, Buffer

createBufferedRO

public static RandomAccessRO createBufferedRO(Buffer[] ds)
                                       throws java.io.IOException
Deprecated. 
create RandomAccessRO from Buffer array with #BIG_ENDIAN byte order. Same as createRO(new DefaultBufferManager(buffer));

Parameters:
ds - Buffer array
Returns:
RandomAccessRO
Throws:
java.io.IOException
See Also:
RandomAccessRO, BufferManager, DefaultBufferManager, InputStreamBufferManager, Buffer

createBufferedRO

public static RandomAccessBufferRO createBufferedRO(java.io.InputStream in,
                                                    int byteOrder)
                                             throws java.io.IOException
Deprecated. 
create RandomAccessRO from InputStream.

Parameters:
in - InputStream
byteOrder - if AUTO_ENDIAN then byte order is detected. If detection failed then byteOrder is set to BIG_ENDIAN
Returns:
RandomAccessRO
Throws:
java.io.IOException
See Also:
RandomAccessRO, BufferManager, DefaultBufferManager, InputStreamBufferManager, Buffer

createBufferedRO

public static RandomAccessBufferRO createBufferedRO(java.io.InputStream in)
                                             throws java.io.IOException
Deprecated. 
create RandomAccessRO from InputStream with default for java byte order (BIG_ENDIAN).

Parameters:
in - InputStream
Returns:
RandomAccessRO
Throws:
java.io.IOException
See Also:
RandomAccessRO, BufferManager, DefaultBufferManager, InputStreamBufferManager, Buffer

create

public static RandomAccess create(java.io.File f,
                                  int byteOrder)
                           throws java.io.IOException
Deprecated. 
create RandomAccess to read from and write to specified file.

Parameters:
f - File to read/write
byteOrder - if AUTO_ENDIAN then byte order is detected. If detection failed then byteOrder is set to BIG_ENDIAN
Returns:
RandomAccess
Throws:
java.io.IOException
See Also:
RandomAccess

create

public static RandomAccess create(java.io.File f)
                           throws java.io.IOException
Deprecated. 
create RandomAccess (with BIG_ENDIAN byte order) to read from and write to specified file.

Parameters:
f - File to read/write
Returns:
RandomAccess
Throws:
java.io.IOException
See Also:
RandomAccess

createRO

public static RandomAccessRO createRO(java.io.File f,
                                      int byteOrder)
                               throws java.io.IOException
Deprecated. 
create RandomAccessRO to read from to specified file.

Parameters:
f - File to read
byteOrder - if AUTO_ENDIAN then byte order is detected. If detection failed then byteOrder is set to BIG_ENDIAN
Returns:
RandomAccess
Throws:
java.io.IOException
See Also:
RandomAccessRO

createRO

public static RandomAccessRO createRO(java.io.File f)
                               throws java.io.IOException
Deprecated. 
create RandomAccessRO with BIG-ENDIAN byte order to read from to specified file.

Parameters:
f - File to read
Returns:
RandomAccess
Throws:
java.io.IOException
See Also:
RandomAccessRO

create

public static RandomAccess create(java.lang.String name,
                                  int byteOrder)
                           throws java.io.IOException
Deprecated. 
create RandomAccess to read from and write to file with specified name.

Parameters:
name - file name
byteOrder - if AUTO_ENDIAN then byte order is detected. If detection failed then byteOrder is set to BIG_ENDIAN
Returns:
RandomAccess
Throws:
java.io.IOException

create

public static RandomAccess create(java.lang.String name)
                           throws java.io.IOException
Deprecated. 
create RandomAccess with BIG-ENDIAN byte order to read from and write to file with specified name.

Parameters:
name - file name
Returns:
RandomAccess
Throws:
java.io.IOException

createRO

public static RandomAccessRO createRO(java.lang.String name,
                                      int byteOrder)
                               throws java.io.IOException
Deprecated. 
create RandomAccessRO to read data from file with specified name.

Parameters:
name - file name
byteOrder - if AUTO_ENDIAN then byte order is detected. If detection failed then byteOrder is set to BIG_ENDIAN
Returns:
RandomAccessRO
Throws:
java.io.IOException

createRO

public static RandomAccessRO createRO(java.lang.String name)
                               throws java.io.IOException
Deprecated. 
create RandomAccessRO with BIG-ENDIAN byte order to read data from file with specified name.

Parameters:
name - file name
Returns:
RandomAccessRO
Throws:
java.io.IOException

create

public static RandomAccess create(java.io.File file,
                                  long offset,
                                  int byteOrder)
                           throws java.io.IOException
Deprecated. 
create RandomAccess to read from and write to specified file starting from specified offset in file.

Parameters:
file - File to read/write
offset - start offset in file
byteOrder - if AUTO_ENDIAN then byte order is detected. If detection failed then byteOrder is set to BIG_ENDIAN
Returns:
RandomAccess
Throws:
java.io.IOException

create

public static RandomAccess create(java.io.File file,
                                  long offset)
                           throws java.io.IOException
Deprecated. 
create RandomAccess with BIG-ENDIAN byte order to read from and write to specified file starting from specified offset in file.

Parameters:
file - File to read/write
offset - start offset in file
Returns:
RandomAccess
Throws:
java.io.IOException

createRO

public static RandomAccessRO createRO(java.io.File file,
                                      long offset,
                                      int byteOrder)
                               throws java.io.IOException
Deprecated. 
create RandomAccessRO to read from specified file starting from specified offset in file. this is the OLD unbuffered method to read file (slow for DataInput methods)

Parameters:
file - File to read
byteOrder - if AUTO_ENDIAN then byte order is detected. If detection failed then byteOrder is set to BIG_ENDIAN
offset - start offset in file
Returns:
RandomAccessRO
Throws:
java.io.IOException

createRO

public static RandomAccessRO createRO(java.io.File file,
                                      long offset)
                               throws java.io.IOException
Deprecated. 
create RandomAccessRO with BIG-ENDIAN byte order to read from specified file starting from specified offset in file.

Parameters:
file - File to read
offset - start offset in file
Returns:
RandomAccessRO
Throws:
java.io.IOException

create

public static RandomAccess create(java.io.File file,
                                  long offset,
                                  long length,
                                  int byteOrder)
                           throws java.io.IOException
Deprecated. 
create RandomAccess to read from/write to specified segment of the file.

Parameters:
file - file to read/write
offset - start of segment
byteOrder - if AUTO_ENDIAN then byte order is detected. If detection failed then byteOrder is set to BIG_ENDIAN
length - segment length
Returns:
RandomAccess
Throws:
java.io.IOException

createBuffered

public static RandomAccessBuffer createBuffered(java.io.File file,
                                                long offset,
                                                long length,
                                                int byteOrder)
                                         throws java.io.IOException
Deprecated. 
create bufferer RandomAccess to read from/write to specified segment of the file.

Parameters:
file - file to read/write
offset - start of segment
byteOrder - if AUTO_ENDIAN then byte order is detected. If detection failed then byteOrder is set to BIG_ENDIAN
length - segment length
Returns:
RandomAccess
Throws:
java.io.IOException

create

public static RandomAccess create(java.io.File file,
                                  long offset,
                                  long length)
                           throws java.io.IOException
Deprecated. 
create RandomAccess with BIG-ENDIAN byte order to read from/write to specified segment of the file.

Parameters:
file - file to read/write
offset - start of segment
length - segment length
Returns:
RandomAccess
Throws:
java.io.IOException

createBuffered

public static RandomAccessBuffer createBuffered(java.io.File file,
                                                long offset,
                                                long length)
                                         throws java.io.IOException
Deprecated. 
create buffered RandomAccess with BIG-ENDIAN byte order to read from/write to specified segment of the file.

Parameters:
file - file to read/write
offset - start of segment
length - segment length
Returns:
RandomAccess
Throws:
java.io.IOException

createRO

public static RandomAccessRO createRO(java.io.File file,
                                      long offset,
                                      long length,
                                      int byteOrder)
                               throws java.io.IOException
Deprecated. 
create RandomAccessRO to read from specified segment of the file.

Parameters:
file - file to read
offset - start of segment
length - segment length
byteOrder - if AUTO_ENDIAN then byte order is detected. If detection failed then byteOrder is set to BIG_ENDIAN
Returns:
RandomAccessRO
Throws:
java.io.IOException

createBufferedRO

public static RandomAccessRO createBufferedRO(java.io.File file,
                                              long offset,
                                              long length,
                                              int byteOrder)
                                       throws java.io.IOException
Deprecated. 
create buffered RandomAccessRO to read from specified segment of the file.

Parameters:
file - file to read
offset - start of segment
length - segment length
byteOrder - if AUTO_ENDIAN then byte order is detected. If detection failed then byteOrder is set to BIG_ENDIAN
Returns:
RandomAccessRO
Throws:
java.io.IOException

createRO

public static RandomAccessRO createRO(java.io.File file,
                                      long offset,
                                      long length)
                               throws java.io.IOException
Deprecated. 
create RandomAccessRO with BIG-ENDIAN byte order to read from specified segment of the file.

Parameters:
file - file to read
offset - start of segment
length - segment length
Returns:
RandomAccessRO
Throws:
java.io.IOException

createBufferedRO

public static RandomAccessRO createBufferedRO(java.io.File file,
                                              long offset,
                                              long length)
                                       throws java.io.IOException
Deprecated. 
create buffered RandomAccessRO with BIG-ENDIAN byte order to read from specified segment of the file.

Parameters:
file - file to read
offset - start of segment
length - segment length
Returns:
RandomAccessRO
Throws:
java.io.IOException

create

public static RandomAccess create(java.lang.String name,
                                  long offset,
                                  long length,
                                  int byteOrder)
                           throws java.io.IOException
Deprecated. 
create RandomAccess to read from/write to segment of the file with specified name.

Parameters:
name - file name
offset - start of segment
length - segment length
byteOrder - if AUTO_ENDIAN then byte order is detected. If detection failed then byteOrder is set to BIG_ENDIAN
Returns:
RandomAccess
Throws:
java.io.IOException

createBuffered

public static RandomAccessBuffer createBuffered(java.lang.String name,
                                                long offset,
                                                long length,
                                                int byteOrder)
                                         throws java.io.IOException
Deprecated. 
create buffered RandomAccess to read from/write to segment of the file with specified name.

Parameters:
name - file name
offset - start of segment
length - segment length
byteOrder - if AUTO_ENDIAN then byte order is detected. If detection failed then byteOrder is set to BIG_ENDIAN
Returns:
RandomAccess
Throws:
java.io.IOException

create

public static RandomAccess create(java.lang.String name,
                                  long offset,
                                  long length)
                           throws java.io.IOException
Deprecated. 
create RandomAccess with BIG-ENDIAN byte order to read from/write to segment of the file with specified name.

Parameters:
name - file name
offset - start of segment
length - segment length
Returns:
RandomAccess
Throws:
java.io.IOException

createBuffered

public static RandomAccessBuffer createBuffered(java.lang.String name,
                                                long offset,
                                                long length)
                                         throws java.io.IOException
Deprecated. 
create buffered RandomAccess with BIG-ENDIAN byte order to read from/write to segment of the file with specified name.

Parameters:
name - file name
offset - start of segment
length - segment length
Returns:
RandomAccess
Throws:
java.io.IOException

createRO

public static RandomAccessRO createRO(java.lang.String name,
                                      long offset,
                                      long length,
                                      int byteOrder)
                               throws java.io.IOException
Deprecated. 
create RandomAccessRO to read from segment of the file with specified name.

Parameters:
name - file name
offset - start of segment
length - segment length
byteOrder - if AUTO_ENDIAN then byte order is detected. If detection failed then byteOrder is set to BIG_ENDIAN
Returns:
RandomAccessRO
Throws:
java.io.IOException

createBufferedRO

public static RandomAccessRO createBufferedRO(java.lang.String name,
                                              long offset,
                                              long length,
                                              int byteOrder)
                                       throws java.io.IOException
Deprecated. 
create buffered RandomAccessRO to read from segment of the file with specified name.

Parameters:
name - file name
offset - start of segment
length - segment length
byteOrder - if AUTO_ENDIAN then byte order is detected. If detection failed then byteOrder is set to BIG_ENDIAN
Returns:
RandomAccessRO
Throws:
java.io.IOException

createRO

public static RandomAccessRO createRO(java.lang.String name,
                                      long offset,
                                      long length)
                               throws java.io.IOException
Deprecated. 
create RandomAccessRO with BIG-ENDIAN byte order to read from segment of the file with specified name.

Parameters:
name - file name
offset - start of segment
length - segment length
Returns:
RandomAccessRO
Throws:
java.io.IOException

createBufferedRO

public static RandomAccessRO createBufferedRO(java.lang.String name,
                                              long offset,
                                              long length)
                                       throws java.io.IOException
Deprecated. 
create RandomAccessRO with BIG-ENDIAN byte order to read from segment of the file with specified name.

Parameters:
name - file name
offset - start of segment
length - segment length
Returns:
RandomAccessRO
Throws:
java.io.IOException

create

public static RandomAccess create(java.io.RandomAccessFile raf,
                                  int byteOrder)
                           throws java.io.IOException
Deprecated. 
create RandomAccess from specified RandomAccessFile

Parameters:
raf - RandomAccessFile
byteOrder - if AUTO_ENDIAN then byte order is detected. If detection failed then byteOrder is set to BIG_ENDIAN
Returns:
RandomAccess
Throws:
java.io.IOException

createBuffered

public static RandomAccessBuffer createBuffered(java.io.RandomAccessFile raf,
                                                int byteOrder)
                                         throws java.io.IOException
Deprecated. 
create buffered RandomAccess from specified RandomAccessFile

Parameters:
raf - RandomAccessFile
byteOrder - if AUTO_ENDIAN then byte order is detected. If detection failed then byteOrder is set to BIG_ENDIAN
Returns:
RandomAccess
Throws:
java.io.IOException

create

public static RandomAccess create(java.io.RandomAccessFile raf)
                           throws java.io.IOException
Deprecated. 
create RandomAccess with BIG-ENDIAN byte order from specified RandomAccessFile

Parameters:
raf - RandomAccessFile
Returns:
RandomAccess
Throws:
java.io.IOException

createBuffered

public static RandomAccessBuffer createBuffered(java.io.RandomAccessFile raf)
                                         throws java.io.IOException
Deprecated. 
create RandomAccess with BIG-ENDIAN byte order from specified RandomAccessFile

Parameters:
raf - RandomAccessFile
Returns:
RandomAccess
Throws:
java.io.IOException

createBuffered

public static RandomAccessBuffer createBuffered(java.io.OutputStream out)
                                         throws java.io.IOException
Deprecated. 
create RandomAccess with BIG-ENDIAN byte order from specified RandomAccessFile

Parameters:
out - OutputStream
Returns:
RandomAccess
Throws:
java.io.IOException

createRO

public static RandomAccessRO createRO(java.io.RandomAccessFile raf,
                                      int byteOrder)
                               throws java.io.IOException
Deprecated. 
create RandomAccessRO from specified RandomAccessFile

Parameters:
raf - RandomAccessFile
byteOrder - if AUTO_ENDIAN then byte order is detected. If detection failed then byteOrder is set to BIG_ENDIAN
Returns:
RandomAccessRO
Throws:
java.io.IOException

createBufferedRO

public static RandomAccessBufferRO createBufferedRO(java.io.RandomAccessFile raf,
                                                    int byteOrder)
                                             throws java.io.IOException
Deprecated. 
create buffered RandomAccessRO from specified RandomAccessFile

Parameters:
raf - RandomAccessFile
Returns:
RandomAccessRO
Throws:
java.io.IOException

createRO

public static RandomAccessRO createRO(java.io.RandomAccessFile raf)
                               throws java.io.IOException
Deprecated. 
create RandomAccessRO with BIG-ENDIAN byte order from specified RandomAccessFile

Parameters:
raf - RandomAccessFile
Returns:
RandomAccessRO
Throws:
java.io.IOException

createBufferedRO

public static RandomAccessBufferRO createBufferedRO(java.io.RandomAccessFile raf)
                                             throws java.io.IOException
Deprecated. 
create buffered RandomAccessRO with BIG-ENDIAN byte order from specified RandomAccessFile

Parameters:
raf - RandomAccessFile
Returns:
RandomAccessRO
Throws:
java.io.IOException

create

public static RandomAccessByteArray create(byte[] data,
                                           int byteOrder)
                                    throws java.io.IOException
Deprecated. 
create RandomAccess from specified byte array

Parameters:
data - byte array
byteOrder - if AUTO_ENDIAN then byte order is detected. If detection failed then byteOrder is set to BIG_ENDIAN
Returns:
RandomAccess
Throws:
java.io.IOException

create

public static RandomAccessByteArray create(byte[] data)
                                    throws java.io.IOException
Deprecated. 
create RandomAccess with BIG-ENDIAN byte order from specified byte array

Parameters:
data - byte array
Returns:
RandomAccess
Throws:
java.io.IOException

createRO

public static RandomAccessByteArrayRO createRO(byte[] data,
                                               int byteOrder)
                                        throws java.io.IOException
Deprecated. 
create RandomAccessRO from specified byte array

Parameters:
data - byte array
byteOrder - if AUTO_ENDIAN then byte order is detected. If detection failed then byteOrder is set to BIG_ENDIAN
Returns:
RandomAccessRO
Throws:
java.io.IOException

createRO

public static RandomAccessByteArrayRO createRO(byte[] data)
                                        throws java.io.IOException
Deprecated. 
create RandomAccessRO with BIG-ENDIAN byte order from specified byte array

Parameters:
data - byte array
Returns:
RandomAccessRO
Throws:
java.io.IOException

create

public static RandomAccessByteArray create(byte[] data,
                                           int off,
                                           int length,
                                           int byteOrder)
                                    throws java.io.IOException
Deprecated. 
create RandomAccess from specified segment of byte array

Parameters:
data - byte array
off - start of segment
length - segment length
byteOrder - if AUTO_ENDIAN then byte order is detected. If detection failed then byteOrder is set to BIG_ENDIAN
Returns:
RandomAccess
Throws:
java.io.IOException

create

public static RandomAccessByteArray create(byte[] data,
                                           int off,
                                           int length)
                                    throws java.io.IOException
Deprecated. 
create RandomAccess with BIG-ENDIAN byte order from specified segment of byte array

Parameters:
data - byte array
off - start of segment
length - segment length
Returns:
RandomAccess
Throws:
java.io.IOException

createRO

public static RandomAccessByteArrayRO createRO(byte[] data,
                                               int off,
                                               int length,
                                               int byteOrder)
                                        throws java.io.IOException
Deprecated. 
create RandomAccessRO from specified segment of byte array

Parameters:
data - byte array
off - start of segment
length - segment length
byteOrder - if AUTO_ENDIAN then byte order is detected. If detection failed then byteOrder is set to BIG_ENDIAN
Returns:
RandomAccessRO
Throws:
java.io.IOException

createRO

public static RandomAccessByteArrayRO createRO(byte[] data,
                                               int off,
                                               int length)
                                        throws java.io.IOException
Deprecated. 
create RandomAccessRO with BIG-ENDIAN byte order from specified segment of byte array

Parameters:
data - byte array
off - start of segment
length - segment length
Returns:
RandomAccessRO
Throws:
java.io.IOException

createBufferedRO

public static RandomAccessBufferRO createBufferedRO(java.net.URL url)
                                             throws java.io.IOException
Deprecated. 
create RandomAccessRO (buffered) from specified URL.

Parameters:
url - URL
Returns:
RandomAccessRO
Throws:
java.io.IOException

createBufferedRO

public static RandomAccessBufferRO createBufferedRO(RandomAccessRO ro,
                                                    long offset,
                                                    int length)
                                             throws java.io.IOException
Deprecated. 
create RandomAccessRO from specified RandomAccessRO.

Parameters:
ro - RandomAccessRO
offset - offset in ro
length - length of created RandomAccessRO
Returns:
RandomAccessRO
Throws:
java.io.IOException

createBuffered

public static RandomAccessBuffer createBuffered(RandomAccess ro,
                                                long offset,
                                                int length)
                                         throws java.io.IOException
Deprecated. 
create RandomAccess from specified RandomAccess.

Parameters:
ro - RandomAccess
offset - offset in ro
length - length of created RandomAccess
Returns:
RandomAccessRO
Throws:
java.io.IOException

createBufferedRO

public static RandomAccessBufferRO createBufferedRO(short[] data)
                                             throws java.io.IOException
Deprecated. 
Create RandomAccessRO from short array

Parameters:
data - short array
Returns:
RandomAccessRO
Throws:
java.io.IOException

createBuffered

public static RandomAccessBuffer createBuffered(short[] data)
                                         throws java.io.IOException
Deprecated. 
Create RandomAccess from short array

Parameters:
data - short array
Returns:
RandomAccess
Throws:
java.io.IOException

createBufferedRO

public static RandomAccessBufferRO createBufferedRO(short[] data,
                                                    int off,
                                                    int length)
                                             throws java.io.IOException
Deprecated. 
Create RandomAccessRO from short array

Parameters:
data - short array
off - start offset
length - required length
Returns:
RandomAccess
Throws:
java.io.IOException

createBuffered

public static RandomAccessBuffer createBuffered(short[] data,
                                                int off,
                                                int length)
                                         throws java.io.IOException
Deprecated. 
Create RandomAccess from short array

Parameters:
data - short array
off - start offset
length - required length
Returns:
RandomAccess
Throws:
java.io.IOException

createBufferedRO

public static RandomAccessBufferRO createBufferedRO(char[] data)
                                             throws java.io.IOException
Deprecated. 
Create RandomAccessRO from char array

Parameters:
data - char array
Returns:
RandomAccessRO
Throws:
java.io.IOException

createBuffered

public static RandomAccessBuffer createBuffered(char[] data)
                                         throws java.io.IOException
Deprecated. 
Create RandomAccess from char array

Parameters:
data - char array
Returns:
RandomAccess
Throws:
java.io.IOException

createBufferedRO

public static RandomAccessBufferRO createBufferedRO(char[] data,
                                                    int off,
                                                    int length)
                                             throws java.io.IOException
Deprecated. 
Create RandomAccessRO from char array

Parameters:
data - char array
off - start offset
length - required length
Returns:
RandomAccess
Throws:
java.io.IOException

createBuffered

public static RandomAccessBuffer createBuffered(char[] data,
                                                int off,
                                                int length)
                                         throws java.io.IOException
Deprecated. 
Create RandomAccess from char array

Parameters:
data - char array
off - start offset
length - required length
Returns:
RandomAccess
Throws:
java.io.IOException

createBufferedRO

public static RandomAccessBufferRO createBufferedRO(int[] data)
                                             throws java.io.IOException
Deprecated. 
Create RandomAccessRO from int array

Parameters:
data - int array
Returns:
RandomAccess
Throws:
java.io.IOException

createBuffered

public static RandomAccessBuffer createBuffered(int[] data)
                                         throws java.io.IOException
Deprecated. 
Create RandomAccess from int array

Parameters:
data - int array
Returns:
RandomAccess
Throws:
java.io.IOException

createBufferedRO

public static RandomAccessBufferRO createBufferedRO(int[] data,
                                                    int off,
                                                    int length)
                                             throws java.io.IOException
Deprecated. 
Create RandomAccessRO from int array

Parameters:
data - int array
off - start offset
length - required length
Returns:
RandomAccess
Throws:
java.io.IOException

createBuffered

public static RandomAccessBuffer createBuffered(int[] data,
                                                int off,
                                                int length)
                                         throws java.io.IOException
Deprecated. 
Create RandomAccess from int array

Parameters:
data - int array
off - start offset
length - required length
Returns:
RandomAccess
Throws:
java.io.IOException

createBufferedRO

public static RandomAccessBufferRO createBufferedRO(float[] data)
                                             throws java.io.IOException
Deprecated. 
Create RandomAccessRO from int array

Parameters:
data - int array
Returns:
RandomAccess
Throws:
java.io.IOException

createBuffered

public static RandomAccessBuffer createBuffered(float[] data)
                                         throws java.io.IOException
Deprecated. 
Create RandomAccess from int array

Parameters:
data - int array
Returns:
RandomAccess
Throws:
java.io.IOException

createBufferedRO

public static RandomAccessBufferRO createBufferedRO(float[] data,
                                                    int off,
                                                    int length)
                                             throws java.io.IOException
Deprecated. 
Create RandomAccessRO from int array

Parameters:
data - int array
off - start offset
length - required length
Returns:
RandomAccess
Throws:
java.io.IOException

createBuffered

public static RandomAccessBuffer createBuffered(float[] data,
                                                int off,
                                                int length)
                                         throws java.io.IOException
Deprecated. 
Create RandomAccess from int array

Parameters:
data - int array
off - start offset
length - required length
Returns:
RandomAccess
Throws:
java.io.IOException

createBufferedRO

public static RandomAccessBufferRO createBufferedRO(long[] data)
                                             throws java.io.IOException
Deprecated. 
Create RandomAccessRO from long array

Parameters:
data - long array
Returns:
RandomAccess
Throws:
java.io.IOException

createBuffered

public static RandomAccessBuffer createBuffered(long[] data)
                                         throws java.io.IOException
Deprecated. 
Create RandomAccess from long array

Parameters:
data - long array
Returns:
RandomAccess
Throws:
java.io.IOException

createBufferedRO

public static RandomAccessBufferRO createBufferedRO(long[] data,
                                                    int off,
                                                    int length)
                                             throws java.io.IOException
Deprecated. 
Create RandomAccessRO from long array

Parameters:
data - long array
off - start offset
length - required length
Returns:
RandomAccess
Throws:
java.io.IOException

createBuffered

public static RandomAccessBuffer createBuffered(long[] data,
                                                int off,
                                                int length)
                                         throws java.io.IOException
Deprecated. 
Create RandomAccess from long array

Parameters:
data - long array
off - start offset
length - required length
Returns:
RandomAccess
Throws:
java.io.IOException

createBufferedRO

public static RandomAccessBufferRO createBufferedRO(double[] data)
                                             throws java.io.IOException
Deprecated. 
Create RandomAccessRO from double array

Parameters:
data - double array
Returns:
RandomAccess
Throws:
java.io.IOException

createBuffered

public static RandomAccessBuffer createBuffered(double[] data)
                                         throws java.io.IOException
Deprecated. 
Create RandomAccess from double array

Parameters:
data - double array
Returns:
RandomAccess
Throws:
java.io.IOException

createBufferedRO

public static RandomAccessBufferRO createBufferedRO(double[] data,
                                                    int off,
                                                    int length)
                                             throws java.io.IOException
Deprecated. 
Create RandomAccessRO from double array

Parameters:
data - double array
off - start offset
length - required length
Returns:
RandomAccess
Throws:
java.io.IOException

createBuffered

public static RandomAccessBuffer createBuffered(double[] data,
                                                int off,
                                                int length)
                                         throws java.io.IOException
Deprecated. 
Create RandomAccess from double array

Parameters:
data - double array
off - start offset
length - required length
Returns:
RandomAccess
Throws:
java.io.IOException