1 27 package org.htmlparser.lexer; 28 29 import java.io.IOException ; 30 import java.io.Reader ; 31 import java.io.Serializable ; 32 33 import org.htmlparser.util.ParserException; 34 35 48 public abstract class Source 49 extends 50 Reader 51 implements 52 Serializable 53 { 54 58 public static final int EOF = -1; 59 60 64 public abstract String getEncoding (); 65 66 80 public abstract void setEncoding (String character_set) 81 throws 82 ParserException; 83 84 88 93 public abstract void close () throws IOException ; 94 95 103 public abstract int read () throws IOException ; 104 105 116 public abstract int read (char[] cbuf, int off, int len) throws IOException ; 117 118 127 public abstract int read (char[] cbuf) throws IOException ; 128 129 136 public abstract boolean ready () throws IOException ; 137 138 143 public abstract void reset (); 144 145 150 public abstract boolean markSupported (); 151 152 161 public abstract void mark (int readAheadLimit) throws IOException ; 162 163 173 public abstract long skip (long n) throws IOException ; 174 175 179 184 public abstract void unread () throws IOException ; 185 186 193 public abstract char getCharacter (int offset) throws IOException ; 194 195 206 public abstract void getCharacters (char[] array, int offset, int start, int end) throws IOException ; 207 208 215 public abstract String getString (int offset, int length) throws IOException ; 216 217 225 public abstract void getCharacters (StringBuffer buffer, int offset, int length) throws IOException ; 226 227 237 public abstract void destroy () throws IOException ; 238 239 244 public abstract int offset (); 245 246 250 public abstract int available (); 251 } 252 | Popular Tags |