1 28 29 package net.n3.nanoxml; 30 31 import java.io.FileNotFoundException ; 32 import java.io.IOException ; 33 import java.io.Reader ; 34 import java.net.MalformedURLException ; 35 36 42 public interface IXMLReader 43 { 44 45 52 public char read() throws IOException ; 53 54 59 public boolean atEOFOfCurrentStream() throws IOException ; 60 61 66 public boolean atEOF() throws IOException ; 67 68 75 public void unread(char ch) throws IOException ; 76 77 80 public int getLineNr(); 81 82 93 public Reader openStream(String publicID, String systemID) throws MalformedURLException , 94 FileNotFoundException , IOException ; 95 96 102 public void startNewStream(Reader reader); 103 104 111 public void setSystemID(String systemID) throws MalformedURLException ; 112 113 118 public void setPublicID(String publicID); 119 120 123 public String getSystemID(); 124 125 128 public String getPublicID(); 129 130 } 131 | Popular Tags |