Package org.kapott.hbci.datatypes
Class SyntaxBin
- java.lang.Object
-
- org.kapott.hbci.datatypes.SyntaxDE
-
- org.kapott.hbci.datatypes.SyntaxBin
-
public class SyntaxBin extends SyntaxDE
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private static java.lang.Stringexpand(java.lang.String x)private static java.lang.StringexpandNumber(java.lang.String x)private intgetHeaderLen(java.lang.String st)voidinit(java.lang.StringBuffer res, int minsize, int maxsize)voidinit(java.lang.String x, int minlen, int maxlen)private voidinitData(java.lang.StringBuffer res, int minsize, int maxsize)private java.lang.Stringparse(java.lang.String st)java.lang.StringtoString(int zero)-
Methods inherited from class org.kapott.hbci.datatypes.SyntaxDE
destroy, findNextDelim, getContent, init, setContent, skipPreDelim, toString
-
-
-
-
Method Detail
-
expandNumber
private static java.lang.String expandNumber(java.lang.String x)
- Parameters:
x- the String representation of the number- Returns:
- a String, where each "character" is one byte of the big-endian-byte-representation of the given number
-
expand
private static java.lang.String expand(java.lang.String x)
- Parameters:
x- the String to be converted- Returns:
- the binary String representing the given value
- Throws:
java.lang.IllegalArgumentException- occurs when the first character of the given string is neither "N" nor "B"
-
init
public void init(java.lang.String x, int minlen, int maxlen)
-
toString
public java.lang.String toString(int zero)
-
getHeaderLen
private int getHeaderLen(java.lang.String st)
- Parameters:
st- the string representing the complete datatype BIN- Returns:
- the length of the header-field in this string (i.e. the number of bytes making the @len@ part of the string
-
parse
private java.lang.String parse(java.lang.String st)
- Parameters:
st- the content of an HBCI-BIN-datatype-field- Returns:
- the "real" data wrapped into the given string
-
initData
private void initData(java.lang.StringBuffer res, int minsize, int maxsize)
-
-