Package org.kapott.hbci.datatypes
Class SyntaxBin
java.lang.Object
org.kapott.hbci.datatypes.SyntaxDE
org.kapott.hbci.datatypes.SyntaxBin
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static String
private static String
private int
getHeaderLen
(String st) void
init
(StringBuffer res, int minsize, int maxsize) void
private void
initData
(StringBuffer res, int minsize, int maxsize) private String
toString
(int zero) Methods inherited from class org.kapott.hbci.datatypes.SyntaxDE
destroy, findNextDelim, getContent, init, setContent, skipPreDelim, toString
-
Constructor Details
-
SyntaxBin
- See Also:
-
SyntaxBin
- See Also:
-
-
Method Details
-
expandNumber
- 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
- Parameters:
x
- the String to be converted- Returns:
- the binary String representing the given value
- Throws:
IllegalArgumentException
- occurs when the first character of the given string is neither "N" nor "B"
-
init
-
toString
-
getHeaderLen
- 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
- Parameters:
st
- the content of an HBCI-BIN-datatype-field- Returns:
- the "real" data wrapped into the given string
-
initData
-
init
-