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.util
Class Bin

java.lang.Object
  extended by oracle.dss.util.xdo.common.util.Bin


public class Bin
extends java.lang.Object

Byte array operation routines Example) byte[] org = {(byte)0x00,(byte)0x01,(byte)0x02,(byte)0x03,(byte)0x04,(byte)0x05}; byte[] data = {(byte)0xAA,(byte)0xBB,(byte)0xCC}; byte[] replaced; replaced = BinReplace.replace( org, 1, 2, data ); ==> 00 AA BB CC 03 04 05


Field Summary
static java.lang.String RCS_ID
           

 

Constructor Summary
Bin()
           

 

Method Summary
static byte[] concat(byte[] org, byte[] data)
          Concat specified two byte arrays into one byte array
static byte[] insert(byte[] org, int pos, byte[] data)
          Insert specified specified data into org byte array
static byte[] insert(byte[] org, int pos, byte[] data, int dataPos, int dataLen)
          Insert specified specified data into org byte array
static byte[] replace(byte[] org, int pos, int len, byte[] data)
          Replace specified range of org with specified data
static byte[] replace(byte[] org, int pos, int len, byte[] data, int dataPos, int dataLen)
          Replace specified range of org with specified data

 

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

Bin

public Bin()

Method Detail

replace

public static byte[] replace(byte[] org,
                             int pos,
                             int len,
                             byte[] data,
                             int dataPos,
                             int dataLen)
Replace specified range of org with specified data
Parameters:
org - original byte array
pos - start position of org to be replaced
len - length of org to be replaced
data - data bytes to be inserted
dataPos - start position of data to be inserted
dataLen - length of data
Returns:
new byte array

replace

public static byte[] replace(byte[] org,
                             int pos,
                             int len,
                             byte[] data)
Replace specified range of org with specified data
Parameters:
org - original byte array
pos - start position of org to be replaced
len - length of org to be replaced
data - data bytes to be inserted
Returns:
new byte array

insert

public static byte[] insert(byte[] org,
                            int pos,
                            byte[] data,
                            int dataPos,
                            int dataLen)
Insert specified specified data into org byte array
Parameters:
org - original byte array
pos - position of org to be inserted
data - data bytes to be inserted
dataPos - start position of data to be inserted
dataLen - length of data
Returns:
new byte array

insert

public static byte[] insert(byte[] org,
                            int pos,
                            byte[] data)
Insert specified specified data into org byte array
Parameters:
org - original byte array
pos - position of org to be inserted
data - data bytes to be inserted
Returns:
new byte array

concat

public static byte[] concat(byte[] org,
                            byte[] data)
Concat specified two byte arrays into one byte array
Parameters:
bArray1 - byte array1
bArray2 - byte array2
Returns:
new byte array

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.