[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. Advertising

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. Bijoy Naick

    Rational Unified Process

    Bijoy Naick, Dec 3, 2004, in forum: ASP .Net
    Replies:
    0
    Views:
    321
    Bijoy Naick
    Dec 3, 2004
  2. Bijoy Naick
    Replies:
    1
    Views:
    541
    Ken Dopierala Jr.
    Dec 4, 2004
  3. Andrei Kouznetsov

    [ANN] Unified I/O for Java 2.1 released

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

    [ANN] Unified I/O 2.2 released

    Andrey Kuznetsov, Feb 10, 2005, in forum: Java
    Replies:
    0
    Views:
    343
    Andrey Kuznetsov
    Feb 10, 2005
  5. Replies:
    3
    Views:
    390
    Roedy Green
    Feb 23, 2006
Loading...

Share This Page