|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.slamd.asn1.ASN1Writer
This class provides a mechanism for sending ASN.1 elements over an output
stream. It is not a true java.io.Writer, but it should be good
enough for most purposes.
| Constructor Summary | |
ASN1Writer(java.io.OutputStream outputStream)
Creates a new ASN.1 writer configured to use the specified output stream. |
|
ASN1Writer(java.net.Socket socket)
Creates a new ASN.1 writer configured to use the specified socket. |
|
| Method Summary | |
void |
close()
Closes this writer so that it may no longer be used to send ASN.1 elements over the specified output stream. |
void |
flush()
Causes the output stream to be flushed and any buffered data to be sent immediately rather than waiting for the buffer to fill. |
void |
writeElement(ASN1Element element)
Writes the specified ASN.1 element over the output stream. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ASN1Writer(java.io.OutputStream outputStream)
outputStream - The output stream over which the ASN.1 elements will
be written.
public ASN1Writer(java.net.Socket socket)
throws java.io.IOException
socket - The socket over which the ASN.1 elements will be written.
java.io.IOException - If the output stream of the provided socket cannot be
obtained.| Method Detail |
public void writeElement(ASN1Element element)
throws java.io.IOException
element - The element to be written over the output stream.
java.io.IOException - If there is a problem writing the specified element
over the output stream.
public void flush()
throws java.io.IOException
java.io.IOException - If there is a problem flushing the output stream.
public void close()
throws java.io.IOException
java.io.IOException - If there is a problem encountered while closing the
writer.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||