[ANN] Unified IO 1.3 [final] released

Discussion in 'Java' started by ak, Jun 15, 2004.

  1. ak

    ak Guest

    UnifiedIO is a Java library that provides random access to any data stream
    (even over HTTP),
    and gives a clear differentiation between read only and read/write access.

    UnifiedIO features the ability to access everything (files, streams, and
    arrays) using one common interface, the ability to select (and change) byte
    order, the ability to define a start offset and requested data length, and
    HTTP transfer optimization (only requesting the required data range).

    UnifiedIO is extensible through DataSource/DataSourceManager.

    What's new in Version 1.3

    Ability to read/write data direct into/from ANY array was added.

    For example if you need to read a couple of ints:
    Java IO:
    InputStream in = <whatever>;
    DataInputStream din = new DataInputStream(in);
    int [] values = new int[100];
    for(int i = 0; i < values.length; i++) {
    values = din.readInt();
    }

    Unified IO:
    InputStream in = <whatever>;
    RandomAccessRO ro = RandomAccessFactory.createRO(in);
    //set byte order here if needed
    int [] ivalues = new int[100];
    ro.readFully(ivalues);
    //or interpret same data as floats
    ro.seek(0L);
    float[] fvalues = new float[100];
    ro.readFully(fvalues);


    --
    https://uio.dev.java.net
    http://uio.imagero.com Unified I/O for Java
    http://reader.imagero.com Java image reader
     
    ak, Jun 15, 2004
    #1
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Andrei Kouznetsov

    [ANN] Unified I/O for Java 2.1 released

    Andrei Kouznetsov, Nov 28, 2004, in forum: Java
    Replies:
    1
    Views:
    418
    Greg Bishop
    Dec 2, 2004
  2. Andrey Kuznetsov

    [ANN] Unified I/O 2.2 released

    Andrey Kuznetsov, Feb 10, 2005, in forum: Java
    Replies:
    0
    Views:
    422
    Andrey Kuznetsov
    Feb 10, 2005
  3. JFCM
    Replies:
    4
    Views:
    6,042
  4. Michael Hobbs
    Replies:
    0
    Views:
    404
    Michael Hobbs
    Oct 21, 2004
  5. Replies:
    0
    Views:
    371
  6. Gerhard Haering

    [ANN] pysqlite 2.0.0 final released!

    Gerhard Haering, May 16, 2005, in forum: Python
    Replies:
    0
    Views:
    376
    Gerhard Haering
    May 16, 2005
  7. Replies:
    0
    Views:
    374
  8. Replies:
    5
    Views:
    751
    Chris Uppal
    Nov 17, 2006
Loading...