public final class AsciiWord extends DumpableObject implements Clearable
AsciiParser
.Modifier and Type | Field and Description |
---|---|
protected byte[] |
data |
protected int |
length |
protected int |
position |
Constructor and Description |
---|
AsciiWord(byte[] data) |
AsciiWord(java.lang.String text) |
Modifier and Type | Method and Description |
---|---|
byte[] |
asBytes() |
double |
asDouble()
Converts the current buffer content to a double value.
|
int |
asInt()
Converts the current buffer content to an integer value.
|
long |
asLong()
Converts the current buffer content to a long value.
|
short |
asShort()
Converts the current buffer content to a short value.
|
java.lang.String |
asString() |
void |
checkDouble()
Performs a fast check whether the current buffer content could be converted to a double value.
|
void |
checkLong()
Performs a fast check whether the current buffer content could be converted to a long value.
|
void |
clear()
Clears the content
|
void |
copyData(AsciiWord word) |
boolean |
equals(java.lang.Object obj) |
boolean |
equalsIgnoreCase(byte[] bytes) |
boolean |
equalsIgnoreCase(java.lang.String text) |
byte |
getByteAt(int index) |
int |
hashCode() |
protected void |
setMarkers(int position,
int length) |
ToString |
toString(ToString s)
This method allows subclasses to add values to the existing ToString of the superclass.
|
configureDumpHeadlineLength, configureDumpMaxElementsPrinted, copyDumpStringValues, copyToStringValues, createDumpHeader, toDumpString, toDumpString, toString
protected final byte[] data
protected int position
protected int length
public AsciiWord(java.lang.String text)
public AsciiWord(byte[] data)
public final void copyData(AsciiWord word)
public final void clear()
Clearable
public final void checkLong()
java.lang.ArithmeticException
- if conversion fails.public final long asLong()
java.lang.ArithmeticException
- if conversion fails.public final int asInt()
java.lang.ArithmeticException
- if conversion fails.public final short asShort()
java.lang.ArithmeticException
- if conversion fails.public final void checkDouble()
java.lang.ArithmeticException
- if conversion fails.public final double asDouble()
java.lang.ArithmeticException
- if conversion fails.protected void setMarkers(int position, int length)
public final byte getByteAt(int index)
public final byte[] asBytes()
public final java.lang.String asString()
public final boolean equalsIgnoreCase(java.lang.String text)
public final boolean equalsIgnoreCase(byte[] bytes)
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public ToString toString(ToString s)
Dumpable
toString
in interface Dumpable
toString
in class DumpableObject
Copyright © 2011 EsprIT-Systems. All Rights Reserved.