Package org.verapdf.pdfa.parsers.pkcs7
Class IndefiniteLengthConverter
- java.lang.Object
-
- org.verapdf.pdfa.parsers.pkcs7.IndefiniteLengthConverter
-
public class IndefiniteLengthConverter extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static int
LENGTH_LONG
-
Constructor Summary
Constructors Constructor Description IndefiniteLengthConverter()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
convertBytes(byte[] indefiniteData)
static byte[]
convertStream(InputStream in, byte lengthByte, byte tag)
protected static byte[]
getLenBytes(int len)
static boolean
isIndefinite(int lenByte)
static boolean
isLongForm(int lenByte)
-
-
-
Field Detail
-
LENGTH_LONG
public static final int LENGTH_LONG
- See Also:
- Constant Field Values
-
-
Method Detail
-
isIndefinite
public static boolean isIndefinite(int lenByte)
-
isLongForm
public static boolean isLongForm(int lenByte)
-
convertStream
public static byte[] convertStream(InputStream in, byte lengthByte, byte tag) throws IOException
- Throws:
IOException
-
convertBytes
public byte[] convertBytes(byte[] indefiniteData) throws IOException
- Throws:
IOException
-
getLenBytes
protected static byte[] getLenBytes(int len)
-
-