Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Data Visualization Components
11g Release 1 (11.1.1)

E12063-03


oracle.dss.util.xdo.common.io
Class LE

java.lang.Object
  extended by oracle.dss.util.xdo.common.io.LE


public class LE
extends java.lang.Object

Little endian handling class Use BE class for big endian.


Field Summary
static java.lang.String RCS_ID
           

 

Constructor Summary
LE()
           

 

Method Summary
static void memset(int val, byte[] b)
          Fill specified byte array with specified value
static void memset(int val, byte[] b, int start, int end)
          Fill the specified range of the buffer with a specified value
static double readIEEEDouble(byte[] b, int offset)
          Read a 64bit IEEE floating point (double) number from a byte array.
static int readInt16(byte[] b, int offset)
          Read a 16bit signed integer from a byte array.
static int readInt16(java.io.RandomAccessFile raf)
          Read a 16bit signed integer from RandomAccessFile.
static int readInt32(byte[] b, int offset)
          Read a 32bit signed integer from a byte array.
static int readInt32(java.io.RandomAccessFile raf)
          Read a 32bit signed integer from RandomAccessFile.
static long readInt64(byte[] b, int offset)
          Read a 64bit signed integer from a byte array.
static long readInt64(java.io.RandomAccessFile raf)
          Read a 32bit signed integer from RandomAccessFile.
static int readInt8(byte[] b, int offset)
          Read an 8bit signed integer from a byte array.
static int readInt8(java.io.RandomAccessFile raf)
          Read an 8bit signed integer from RandomAccessFile.
static int readUInt16(byte[] b, int offset)
          Read a 16bit unsigned integer from a byte array.
static int readUInt16(java.io.RandomAccessFile raf)
          Read a 16bit unsigned integer from RandomAccessFile.
static long readUInt32(byte[] b, int offset)
          Read a 32bit unsigned integer from a byte array.
static long readUInt32(java.io.RandomAccessFile raf)
          Read a 32bit unsigned integer from RandomAccessFile.
static int readUInt8(byte[] b, int offset)
          Read an 8bit unsigned integer from a byte array.
static int readUInt8(java.io.RandomAccessFile raf)
          Read an 8bit unsigned integer from RandomAccessFile.
static byte[] StringToUTF16LE(java.lang.String str, boolean zeroTerminate)
          String to UTF-16LE binary data Similar to str.getBytes("UTF-16LE")
static java.lang.String UTF16LEToString(byte[] data, int offset)
          UTF-16LE binary data (\0000 terminated) to String
static java.lang.String UTF16LEToString(byte[] data, int offset, int len)
          UTF-16LE binary data to String Same as: new String(data,offset,len*2,"UTF-16LE")
static void writeIEEEDouble(double val, byte[] b, int offset)
          Write a IEEE Double to byte array.
static void writeInt16(int val, byte[] b, int offset)
          Write a 16bit signed integer to byte array.
static void writeInt16(int val, java.io.RandomAccessFile raf)
          Write a 16bit signed integer to RandomAccessFile.
static void writeInt32(int val, byte[] b, int offset)
          Write a 32bit signed integer to byte array.
static void writeInt32(int val, java.io.RandomAccessFile raf)
          Write a 32bit signed integer to RandomAccessFile.
static void writeInt64(long val, byte[] b, int offset)
          Write a 64bit signed integer to byte array.
static void writeInt8(int val, byte[] b, int offset)
          Write a 8bit signed integer to byte array.
static void writeInt8(int val, java.io.RandomAccessFile raf)
          Write a 8bit signed integer to RandomAccessFile.
static void writeUInt16(int val, byte[] b, int offset)
          Write a 16bit unsigned integer to byte array.
static void writeUInt16(int val, java.io.RandomAccessFile raf)
          Write a 16bit unsigned integer to RandomAccessFile.
static void writeUInt32(long val, byte[] b, int offset)
          Write a 32bit unsigned integer to byte array.
static void writeUInt32(long val, java.io.RandomAccessFile raf)
          Write a 32bit unsigned integer to RandomAccessFile.
static void writeUInt64(long val, byte[] b, int offset)
          Write a 64bit unsigned integer to byte array.
static void writeUInt8(int val, byte[] b, int offset)
          Write a 8bit unsigned integer to byte array.
static void writeUInt8(int val, java.io.RandomAccessFile raf)
          Write a 8bit unsigned integer to RandomAccessFile.

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Field Detail

RCS_ID

public static final java.lang.String RCS_ID
See Also:
Constant Field Values

Constructor Detail

LE

public LE()

Method Detail

readInt8

public static int readInt8(byte[] b,
                           int offset)
Read an 8bit signed integer from a byte array.

readUInt8

public static int readUInt8(byte[] b,
                            int offset)
Read an 8bit unsigned integer from a byte array.

readInt8

public static int readInt8(java.io.RandomAccessFile raf)
                    throws java.io.IOException
Read an 8bit signed integer from RandomAccessFile.
Throws:
java.io.IOException

readUInt8

public static int readUInt8(java.io.RandomAccessFile raf)
                     throws java.io.IOException
Read an 8bit unsigned integer from RandomAccessFile.
Throws:
java.io.IOException

readInt16

public static int readInt16(byte[] b,
                            int offset)
Read a 16bit signed integer from a byte array.

readUInt16

public static int readUInt16(byte[] b,
                             int offset)
Read a 16bit unsigned integer from a byte array.

readInt16

public static int readInt16(java.io.RandomAccessFile raf)
                     throws java.io.IOException
Read a 16bit signed integer from RandomAccessFile.
Throws:
java.io.IOException

readUInt16

public static int readUInt16(java.io.RandomAccessFile raf)
                      throws java.io.IOException
Read a 16bit unsigned integer from RandomAccessFile.
Throws:
java.io.IOException

readInt32

public static int readInt32(byte[] b,
                            int offset)
Read a 32bit signed integer from a byte array.

readUInt32

public static long readUInt32(byte[] b,
                              int offset)
Read a 32bit unsigned integer from a byte array.

readInt32

public static int readInt32(java.io.RandomAccessFile raf)
                     throws java.io.IOException
Read a 32bit signed integer from RandomAccessFile.
Throws:
java.io.IOException

readUInt32

public static long readUInt32(java.io.RandomAccessFile raf)
                       throws java.io.IOException
Read a 32bit unsigned integer from RandomAccessFile.
Throws:
java.io.IOException

readInt64

public static long readInt64(byte[] b,
                             int offset)
Read a 64bit signed integer from a byte array.

readInt64

public static long readInt64(java.io.RandomAccessFile raf)
                      throws java.io.IOException
Read a 32bit signed integer from RandomAccessFile.
Throws:
java.io.IOException

readIEEEDouble

public static double readIEEEDouble(byte[] b,
                                    int offset)
Read a 64bit IEEE floating point (double) number from a byte array.

memset

public static void memset(int val,
                          byte[] b,
                          int start,
                          int end)
Fill the specified range of the buffer with a specified value
Parameters:
end - inclusive

memset

public static void memset(int val,
                          byte[] b)
Fill specified byte array with specified value

writeInt8

public static void writeInt8(int val,
                             byte[] b,
                             int offset)
Write a 8bit signed integer to byte array.

writeUInt8

public static void writeUInt8(int val,
                              byte[] b,
                              int offset)
Write a 8bit unsigned integer to byte array.

writeInt8

public static void writeInt8(int val,
                             java.io.RandomAccessFile raf)
                      throws java.io.IOException
Write a 8bit signed integer to RandomAccessFile.
Throws:
java.io.IOException

writeUInt8

public static void writeUInt8(int val,
                              java.io.RandomAccessFile raf)
                       throws java.io.IOException
Write a 8bit unsigned integer to RandomAccessFile.
Throws:
java.io.IOException

writeInt16

public static void writeInt16(int val,
                              byte[] b,
                              int offset)
Write a 16bit signed integer to byte array.

writeUInt16

public static void writeUInt16(int val,
                               byte[] b,
                               int offset)
Write a 16bit unsigned integer to byte array.

writeInt16

public static void writeInt16(int val,
                              java.io.RandomAccessFile raf)
                       throws java.io.IOException
Write a 16bit signed integer to RandomAccessFile.
Throws:
java.io.IOException

writeUInt16

public static void writeUInt16(int val,
                               java.io.RandomAccessFile raf)
                        throws java.io.IOException
Write a 16bit unsigned integer to RandomAccessFile.
Throws:
java.io.IOException

writeInt32

public static void writeInt32(int val,
                              byte[] b,
                              int offset)
Write a 32bit signed integer to byte array.

writeUInt32

public static void writeUInt32(long val,
                               byte[] b,
                               int offset)
Write a 32bit unsigned integer to byte array.

writeInt32

public static void writeInt32(int val,
                              java.io.RandomAccessFile raf)
                       throws java.io.IOException
Write a 32bit signed integer to RandomAccessFile.
Throws:
java.io.IOException

writeUInt32

public static void writeUInt32(long val,
                               java.io.RandomAccessFile raf)
                        throws java.io.IOException
Write a 32bit unsigned integer to RandomAccessFile.
Throws:
java.io.IOException

writeInt64

public static void writeInt64(long val,
                              byte[] b,
                              int offset)
Write a 64bit signed integer to byte array.

writeUInt64

public static void writeUInt64(long val,
                               byte[] b,
                               int offset)
Write a 64bit unsigned integer to byte array.

writeIEEEDouble

public static void writeIEEEDouble(double val,
                                   byte[] b,
                                   int offset)
Write a IEEE Double to byte array. 8 bytes will be written.

UTF16LEToString

public static java.lang.String UTF16LEToString(byte[] data,
                                               int offset,
                                               int len)
UTF-16LE binary data to String Same as: new String(data,offset,len*2,"UTF-16LE")
Parameters:
data -
offset -
len - length in character count
Returns:

UTF16LEToString

public static java.lang.String UTF16LEToString(byte[] data,
                                               int offset)
UTF-16LE binary data (\0000 terminated) to String
Parameters:
data -
offset -
len - length in character count
Returns:

StringToUTF16LE

public static byte[] StringToUTF16LE(java.lang.String str,
                                     boolean zeroTerminate)
String to UTF-16LE binary data Similar to str.getBytes("UTF-16LE")
Parameters:
str -
zeroTerminate - set true if you want to do zero(\0000) terminate
Returns:

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Data Visualization Components
11g Release 1 (11.1.1)

E12063-03


Copyright © 1997, 2009, Oracle. All rights reserved.