public class SimpleAsciiLine extends DumpableObject
AsciiParser
.
Supports user definable line comment code (default line comment code = '#').Modifier and Type | Field and Description |
---|---|
protected AsciiWord |
currentWord |
protected byte[] |
data |
protected int |
length |
protected byte |
lineCommentCode |
protected int |
position |
Constructor and Description |
---|
SimpleAsciiLine(java.lang.String text) |
Modifier and Type | Method and Description |
---|---|
byte[] |
asBytes() |
java.lang.String |
asString() |
boolean |
equals(java.lang.Object obj) |
boolean |
equalsIgnoreCase(byte[] bytes) |
boolean |
equalsIgnoreCase(java.lang.String text) |
byte |
getByteAt(int index) |
AsciiWord |
getCurrentToRestOfLine() |
AsciiWord |
getCurrentWord() |
AsciiWord |
getNextWord()
Sets the line markers such, that the next word of the line is returned.
|
AsciiWord |
getRestOfLine()
Sets the line markers such, that the data from current position to the rest of line is returned.
|
int |
hashCode() |
void |
setEncoding(java.lang.String encoding)
Defines the character encoding to be used.
|
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 AsciiWord currentWord
protected byte lineCommentCode
protected final byte[] data
protected int position
protected int length
protected final void setMarkers(int position, int length)
public final AsciiWord getCurrentWord()
public AsciiWord getNextWord()
public final AsciiWord getRestOfLine()
public final AsciiWord getCurrentToRestOfLine()
public final byte getByteAt(int index)
public final byte[] asBytes()
public final java.lang.String asString()
public void setEncoding(java.lang.String encoding)
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 © 2014 EsprIT-Systems. All Rights Reserved.