Class DerInputBuffer
java.lang.Object
java.io.InputStream
java.io.ByteArrayInputStream
org.mozilla.jss.netscape.security.util.DerInputBuffer
- All Implemented Interfaces:
Closeable
,AutoCloseable
,Cloneable
DER input buffer ... this is the main abstraction in the DER library
which actively works with the "untyped byte stream" abstraction. It
does so with impunity, since it's not intended to be exposed to the
anyone who could violate the "typed value stream" DER model and hence
corrupt the input stream of DER values.
- Version:
- 1.11
-
Field Summary
Fields inherited from class java.io.ByteArrayInputStream
buf, count, mark, pos
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) void
dump
(OutputStream out, int length) Package-access method to optimize output operations(package private) DerInputBuffer
dup()
boolean
Compares this DerInputBuffer for equality with the specified object.(package private) boolean
equals
(DerInputBuffer other) (package private) byte[]
Returns the bit string which takes up the rest of this buffer.(package private) BitArray
Returns the bit string which takes up the rest of this buffer.(package private) BigInt
getUnsigned
(int len) Returns the unsigned integer which takes up the specified number of bytes in this buffer.(package private) int
peek()
(package private) byte[]
(package private) void
truncate
(int len) Methods inherited from class java.io.ByteArrayInputStream
available, close, mark, markSupported, read, read, readAllBytes, readNBytes, reset, skip, transferTo
Methods inherited from class java.io.InputStream
nullInputStream, read, readNBytes, skipNBytes
-
Constructor Details
-
DerInputBuffer
DerInputBuffer(byte[] buf) -
DerInputBuffer
DerInputBuffer(byte[] buf, int offset, int len)
-
-
Method Details
-
dup
DerInputBuffer dup() -
toByteArray
- Throws:
IOException
-
peek
- Throws:
IOException
-
equals
Compares this DerInputBuffer for equality with the specified object. -
equals
-
truncate
- Throws:
IOException
-
getUnsigned
Returns the unsigned integer which takes up the specified number of bytes in this buffer.- Throws:
IOException
-
getBitString
byte[] getBitString()Returns the bit string which takes up the rest of this buffer. This bit string must be byte-aligned. -
getUnalignedBitString
BitArray getUnalignedBitString()Returns the bit string which takes up the rest of this buffer. The bit string need not be byte-aligned. -
dump
Package-access method to optimize output operations- Throws:
IOException
-