Package org.bouncycastle.gpg
Class SExpression
java.lang.Object
org.bouncycastle.gpg.SExpression
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidstatic SExpression.Builderbuilder()byte[]getBytes(int i) getExpression(int i) getExpressionWithLabel(String label) intgetInt(int i) getString(int i) getValue(int i) booleanbooleanstatic SExpressionparse(byte[] src, int maxDepth) static SExpressionparse(InputStream _src, int maxDepth) Parser for canonical and normal S-Expressionsbyte[]void
-
Constructor Details
-
SExpression
-
SExpression
public SExpression()
-
-
Method Details
-
parse
- Throws:
IOException
-
parse
Parser for canonical and normal S-Expressions- Parameters:
_src- InputmaxDepth- maximum recursion depth before failing- Returns:
- An SExpression
- Throws:
IOException
-
builder
-
addValue
-
getValue
-
getString
-
getInt
public int getInt(int i) -
getBytes
public byte[] getBytes(int i) -
getExpression
-
getValues
-
isCanonical
public boolean isCanonical() -
toAttribute
-
filterOut
-
filterIn
-
toCanonicalForm
public byte[] toCanonicalForm() -
toCanonicalForm
- Throws:
IOException
-
hasLabel
-
getExpressionWithLabel
-
getExpressionWithLabelOrFail
-