Package org.bouncycastle.gpg
Class SExpression
java.lang.Object
org.bouncycastle.gpg.SExpression
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
static SExpression.Builder
builder()
byte[]
getBytes
(int i) getExpression
(int i) getExpressionWithLabel
(String label) int
getInt
(int i) getString
(int i) getValue
(int i) boolean
boolean
static SExpression
parse
(byte[] src, int maxDepth) static SExpression
parse
(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
-