org.apache.directory.shared.asn1.der
Class ASN1OutputStream

java.lang.Object
  extended byjava.io.OutputStream
      extended byjava.io.FilterOutputStream
          extended byorg.apache.directory.shared.asn1.der.ASN1OutputStream

public class ASN1OutputStream
extends java.io.FilterOutputStream


Field Summary
 
Fields inherited from class java.io.FilterOutputStream
out
 
Constructor Summary
ASN1OutputStream(java.nio.ByteBuffer out)
           
ASN1OutputStream(java.io.OutputStream os)
           
 
Method Summary
static java.io.OutputStream newOutputStream(java.nio.ByteBuffer buf)
           
(package private)  void writeEncoded(int tag, byte[] bytes)
           
private  void writeLength(int length)
           
protected  void writeNull()
           
 void writeObject(java.lang.Object obj)
           
 
Methods inherited from class java.io.FilterOutputStream
close, flush, write, write, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ASN1OutputStream

public ASN1OutputStream(java.io.OutputStream os)

ASN1OutputStream

public ASN1OutputStream(java.nio.ByteBuffer out)
Method Detail

newOutputStream

public static java.io.OutputStream newOutputStream(java.nio.ByteBuffer buf)

writeLength

private void writeLength(int length)
                  throws java.io.IOException
Throws:
java.io.IOException

writeEncoded

void writeEncoded(int tag,
                  byte[] bytes)
            throws java.io.IOException
Throws:
java.io.IOException

writeObject

public void writeObject(java.lang.Object obj)
                 throws java.io.IOException
Throws:
java.io.IOException

writeNull

protected void writeNull()
                  throws java.io.IOException
Throws:
java.io.IOException


Copyright © 2003-2006 . All Rights Reserved.