|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opends.server.protocols.asn1.ASN1Writer
@PublicAPI(stability=UNCOMMITTED, mayInstantiate=true, mayExtend=false, mayInvoke=true) public final class ASN1Writer
This class defines a utility that can be used to write ASN.1 elements over a provided socket or output stream.
Constructor Summary | |
---|---|
ASN1Writer(java.io.OutputStream outputStream)
Creates a new ASN.1 writer that will write elements over the provided output stream. |
|
ASN1Writer(java.net.Socket socket)
Creates a new ASN.1 writer that will write elements over the provided socket. |
Method Summary | |
---|---|
void |
close()
Closes this ASN.1 writer and the underlying output stream/socket. |
int |
writeElement(ASN1Element element)
Writes the provided ASN.1 element over the output stream associated with this ASN.1 writer. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ASN1Writer(java.net.Socket socket) throws java.io.IOException
socket
- The socket to use to write ASN.1 elements.
java.io.IOException
- If a problem occurs while trying to get the output
stream for the socket.public ASN1Writer(java.io.OutputStream outputStream)
outputStream
- The output stream to use to write ASN.1 elements.Method Detail |
---|
public int writeElement(ASN1Element element) throws java.io.IOException
element
- The element to be written.
java.io.IOException
- If a problem occurs while trying to write the
information over the output stream.public void close()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |