1 26 27 package it.stefanochizzolini.clown.bytes; 28 29 import it.stefanochizzolini.clown.bytes.filters.Filter; 30 31 35 public interface IBuffer 36 extends IInputStream 37 { 38 42 void append( 43 byte data 44 ); 45 46 50 void append( 51 byte[] data 52 ); 53 54 60 void append( 61 byte[] data, 62 int offset, 63 int length 64 ); 65 66 70 void append( 71 String data 72 ); 73 74 78 void append( 79 IInputStream data 80 ); 81 82 86 IBuffer clone( 87 ); 88 89 93 void decode( 94 Filter filter 95 ); 96 97 102 void delete( 103 int index, 104 int length 105 ); 106 107 112 byte[] encode( 113 Filter filter 114 ); 115 116 121 int getByte( 122 int index 123 ); 124 125 131 byte[] getByteArray( 132 int index, 133 int length 134 ); 135 136 142 String getString( 143 int index, 144 int length 145 ); 146 147 151 int getCapacity( 152 ); 153 154 159 void insert( 160 int index, 161 byte[] data 162 ); 163 164 171 void insert( 172 int index, 173 byte[] data, 174 int offset, 175 int length 176 ); 177 178 183 void insert( 184 int index, 185 String data 186 ); 187 188 193 void insert( 194 int index, 195 IInputStream data 196 ); 197 198 203 void replace( 204 int index, 205 byte[] data 206 ); 207 208 215 void replace( 216 int index, 217 byte[] data, 218 int offset, 219 int length 220 ); 221 222 227 void replace( 228 int index, 229 String data 230 ); 231 232 237 void replace( 238 int index, 239 IInputStream data 240 ); 241 242 246 void setLength( 247 int value 248 ); 249 250 254 void writeTo( 255 IOutputStream stream 256 ); 257 } | Popular Tags |