biz.onixs.fix.parser
Class ValuePtr

java.lang.Object
  extended by biz.onixs.fix.parser.ValuePtr
All Implemented Interfaces:
Comparable

public class ValuePtr
extends Object
implements Comparable

Value pointer.


Constructor Summary
ValuePtr()
           
ValuePtr(byte[] value)
           
ValuePtr(byte[] value, int length)
           
ValuePtr(byte[] value, int offset, int length)
           
ValuePtr(String str)
           
 
Method Summary
 int compareTo(Object vp)
           
 boolean contentEquals(byte[] buffer, int offset)
           
 boolean contentEquals(String str)
           
 boolean equals(Object obj)
           
 byte[] getData()
           
 int getLength()
           
 int getOffset()
           
 byte[] getSpecifiedData()
          Returns the exact byte array specified by this value pointer.
 int hashCode()
           
 boolean isEmpty()
           
 boolean isSet()
          Returns whether value pointer is set
 void reset()
          Resets value pointer to the undefined state.
 void setData(byte[] data)
           
 void setLength(int length)
           
 void setOffset(int offset)
           
 long toLong()
           
 String toString()
           
 void write(OutputStream outputStream)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ValuePtr

public ValuePtr()

ValuePtr

public ValuePtr(byte[] value,
                int offset,
                int length)

ValuePtr

public ValuePtr(byte[] value,
                int length)

ValuePtr

public ValuePtr(byte[] value)

ValuePtr

public ValuePtr(String str)
Method Detail

isSet

public boolean isSet()
Returns whether value pointer is set

Returns:
is value pointer set

reset

public void reset()
Resets value pointer to the undefined state.


getSpecifiedData

public byte[] getSpecifiedData()
Returns the exact byte array specified by this value pointer.

Returns:
specific data byte array

getData

public byte[] getData()

setData

public void setData(byte[] data)

getOffset

public int getOffset()

setOffset

public void setOffset(int offset)

getLength

public int getLength()

setLength

public void setLength(int length)

isEmpty

public boolean isEmpty()

toLong

public long toLong()

write

public void write(OutputStream outputStream)
           throws IOException
Throws:
IOException

compareTo

public int compareTo(Object vp)
Specified by:
compareTo in interface Comparable

toString

public String toString()
Overrides:
toString in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

contentEquals

public boolean contentEquals(String str)

contentEquals

public boolean contentEquals(byte[] buffer,
                             int offset)


Copyright © 2005-2012 Onix Solutions. All Rights Reserved.