org.jvnet.fastinfoset
Interface EncodingAlgorithm

All Known Implementing Classes:
BuiltInEncodingAlgorithm

public interface EncodingAlgorithm


Method Summary
 java.lang.Object convertFromCharacters(char[] ch, int start, int length)
           
 void convertToCharacters(java.lang.Object data, java.lang.StringBuffer s)
           
 java.lang.Object decodeFromBytes(byte[] b, int start, int length)
           
 java.lang.Object decodeFromInputStream(java.io.InputStream s)
           
 void encodeToOutputStream(java.lang.Object data, java.io.OutputStream s)
           
 

Method Detail

decodeFromBytes

public java.lang.Object decodeFromBytes(byte[] b,
                                        int start,
                                        int length)
                                 throws EncodingAlgorithmException
Throws:
EncodingAlgorithmException

decodeFromInputStream

public java.lang.Object decodeFromInputStream(java.io.InputStream s)
                                       throws EncodingAlgorithmException,
                                              java.io.IOException
Throws:
EncodingAlgorithmException
java.io.IOException

encodeToOutputStream

public void encodeToOutputStream(java.lang.Object data,
                                 java.io.OutputStream s)
                          throws EncodingAlgorithmException,
                                 java.io.IOException
Throws:
EncodingAlgorithmException
java.io.IOException

convertFromCharacters

public java.lang.Object convertFromCharacters(char[] ch,
                                              int start,
                                              int length)
                                       throws EncodingAlgorithmException
Throws:
EncodingAlgorithmException

convertToCharacters

public void convertToCharacters(java.lang.Object data,
                                java.lang.StringBuffer s)
                         throws EncodingAlgorithmException
Throws:
EncodingAlgorithmException