1 38 39 package org.jvnet.fastinfoset; 40 41 import java.io.IOException ; 42 import java.io.InputStream ; 43 import java.io.OutputStream ; 44 45 public interface EncodingAlgorithm { 46 47 public Object decodeFromBytes(byte[] b, int start, int length) throws EncodingAlgorithmException; 48 49 public Object decodeFromInputStream(InputStream s) throws EncodingAlgorithmException, IOException ; 50 51 52 public void encodeToOutputStream(Object data, OutputStream s) throws EncodingAlgorithmException, IOException ; 53 54 55 public Object convertFromCharacters(char[] ch, int start, int length) throws EncodingAlgorithmException; 56 57 public void convertToCharacters(Object data, StringBuffer s) throws EncodingAlgorithmException; 58 59 } | Popular Tags |