| | |
| | | import java.io.InputStream; |
| | | import java.io.OutputStream; |
| | | |
| | | import org.opends.sdk.util.*; |
| | | import org.opends.sdk.ByteSequence; |
| | | import org.opends.sdk.ByteSequenceReader; |
| | | import org.opends.sdk.ByteString; |
| | | import org.opends.sdk.ByteStringBuilder; |
| | | |
| | | import com.sun.opends.sdk.util.ByteSequenceOutputStream; |
| | | |
| | | |
| | | /** |
| | | * This class contains various static factory methods for creating ASN.1 |
| | | * readers and writers. |
| | | * |
| | | * |
| | | * @see ASN1Reader |
| | | * @see ASN1Writer |
| | | */ |
| | |
| | | /** |
| | | * Returns an ASN.1 reader whose source is the provided byte array and |
| | | * having an unlimited maximum BER element size. |
| | | * |
| | | * |
| | | * @param array |
| | | * The byte array to use. |
| | | * @return The new ASN.1 reader. |
| | |
| | | /** |
| | | * Returns an ASN.1 reader whose source is the provided byte array and |
| | | * having a user defined maximum BER element size. |
| | | * |
| | | * |
| | | * @param array |
| | | * The byte array to use. |
| | | * @param maxElementSize |
| | |
| | | /** |
| | | * Returns an ASN.1 reader whose source is the provided byte sequence |
| | | * and having an unlimited maximum BER element size. |
| | | * |
| | | * |
| | | * @param sequence |
| | | * The byte sequence to use. |
| | | * @return The new ASN.1 reader. |
| | |
| | | /** |
| | | * Returns an ASN.1 reader whose source is the provided byte sequence |
| | | * and having a user defined maximum BER element size. |
| | | * |
| | | * |
| | | * @param sequence |
| | | * The byte sequence to use. |
| | | * @param maxElementSize |
| | |
| | | /** |
| | | * Returns an ASN.1 reader whose source is the provided byte sequence |
| | | * reader and having an unlimited maximum BER element size. |
| | | * |
| | | * |
| | | * @param reader |
| | | * The byte sequence reader to use. |
| | | * @return The new ASN.1 reader. |
| | |
| | | /** |
| | | * Returns an ASN.1 reader whose source is the provided byte sequence |
| | | * reader and having a user defined maximum BER element size. |
| | | * |
| | | * |
| | | * @param reader |
| | | * The byte sequence reader to use. |
| | | * @param maxElementSize |
| | |
| | | /** |
| | | * Returns an ASN.1 reader whose source is the provided input stream |
| | | * and having an unlimited maximum BER element size. |
| | | * |
| | | * |
| | | * @param stream |
| | | * The input stream to use. |
| | | * @return The new ASN.1 reader. |
| | |
| | | /** |
| | | * Returns an ASN.1 reader whose source is the provided input stream |
| | | * and having a user defined maximum BER element size. |
| | | * |
| | | * |
| | | * @param stream |
| | | * The input stream to use. |
| | | * @param maxElementSize |
| | |
| | | /** |
| | | * Returns an ASN.1 writer whose destination is the provided byte |
| | | * string builder. |
| | | * |
| | | * |
| | | * @param builder |
| | | * The byte string builder to use. |
| | | * @return The new ASN.1 writer. |
| | |
| | | /** |
| | | * Returns an ASN.1 writer whose destination is the provided output |
| | | * stream. |
| | | * |
| | | * |
| | | * @param stream |
| | | * The output stream to use. |
| | | * @return The new ASN.1 writer. |