1 26 27 28 package org.objectweb.jonathan.apis.presentation; 29 30 import org.objectweb.jonathan.apis.kernel.JonathanException; 31 import org.objectweb.jonathan.apis.kernel.Context; 32 import java.io.InputStream ; 33 34 38 public interface UnMarshaller { 39 40 47 byte readByte() 48 throws JonathanException; 49 50 57 boolean readBoolean() 58 throws JonathanException; 59 60 67 char readChar8() 68 throws JonathanException; 69 70 77 char readChar16() 78 throws JonathanException; 79 80 87 short readShort() 88 throws JonathanException; 89 90 97 int readInt() 98 throws JonathanException; 99 100 107 long readLong() 108 throws JonathanException; 109 110 117 float readFloat() 118 throws JonathanException; 119 120 127 double readDouble() 128 throws JonathanException; 129 130 137 String readString8() 138 throws JonathanException; 139 140 147 String readString16() 148 throws JonathanException; 149 150 151 158 Object readReference() throws JonathanException; 159 160 167 Object readValue() throws JonathanException; 168 169 178 void readByteArray(byte[] array, int offset, int len) 179 throws JonathanException; 180 181 189 InputStream inputStream(); 190 191 192 197 boolean isLittleEndian(); 198 199 200 206 void setByteOrder(boolean little_endian); 207 208 209 214 int bytesRead(); 215 216 228 void setSize(int size) throws JonathanException; 229 230 234 void close(); 235 236 240 Context getContext(); 241 } 242 243 244 245 | Popular Tags |