Package org.kapott.hbci.datatypes
Class SyntaxDE
java.lang.Object
org.kapott.hbci.datatypes.SyntaxDE
- Direct Known Subclasses:
SyntaxAN
,SyntaxBin
,SyntaxCtr
,SyntaxCur
,SyntaxDate
,SyntaxDig
,SyntaxFloat
,SyntaxNum
,SyntaxTime
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
destroy()
static int
findNextDelim
(StringBuffer res, int startidx) protected String
protected void
init()
void
init
(StringBuffer x, int minsize, int maxsize) void
protected final void
setContent
(String st, int minsize, int maxsize) protected static int
skipPreDelim
(StringBuffer res) toString()
toString
(int zero)
-
Constructor Details
-
SyntaxDE
- Parameters:
x
- The string representation of the init value.minsize
- The minimum size (string length) of the init value.maxsize
- The maximum size (string length) of the init value. If this is zero, no checking for @p maxsize will be done.
-
SyntaxDE
protected SyntaxDE()
-
-
Method Details
-
init
-
init
-
init
protected void init() -
setContent
- Parameters:
st
- The string representation of the init value.minsize
- The minimum size (string length) of the init value.maxsize
- The maximum size (string length) of the init value. If this is zero, no checking for @p maxsize will be done.- Throws:
IllegalArgumentException
- when the length of @p x is not in the range
-
toString
- Parameters:
zero
- Just a dummy argument to overload the toString method.- Returns:
- A String containing the HBCI representation of this data element
-
getContent
- Returns:
- den aktuellen Inhalt des SyntaxDE in der intern gespeicherten Form (human-readable)
-
skipPreDelim
- Parameters:
res
- A part of an HBCI message to be parsed.- Returns:
- Index into @p res where next token starts.
-
findNextDelim
- Parameters:
res
- Part of an HBCI-message to be parsed.startidx
- Index position where to start looking for the next delimiter.- Returns:
- The position of the next delimiter character in @p res. If there is no next delimiter character, the return value will be the next character after the end of the String @p res (i.e. will equal @c res.length())
-
toString
-
destroy
public void destroy()
-