Package com.oss.asn1
Interface XERWriter
public interface XERWriter
This interface defines methods which are used to write XER encodings
to a target output stream. The methods are invoked by user-defined
XER
encode()
methods.- Since:
- ASN.1/Java 3.0
- See Also:
-
Method Summary
-
Method Details
-
write
Write single octet.- Parameters:
b
- octet to write.- Throws:
IOException
- is thrown if an error occurs when writing to a target stream
-
write
Write the array of bytes.- Parameters:
b
- byte array to write.off
- starting offset in the byte array.len
- the number of bytes to write.- Throws:
IOException
- is thrown if an error occurs when writing to a target stream
-
write
Write a string doing UTF8 encoding.- Parameters:
s
- string to write.- Throws:
IOException
- is thrown if an error occurs when writing to a target streamEncodeFailedException
- is thrown if illegal character is detected
-
writeChar
Write a character doing UTF8 encoding.- Parameters:
character
- a character to write.- Throws:
IOException
- is thrown if an error occurs when writing to a target streamEncodeFailedException
- is thrown if illegal character is detected
-