Java Code Examples for com.lowagie.text.xml.simpleparser.SimpleXMLParser#parse()

The following examples show how to use com.lowagie.text.xml.simpleparser.SimpleXMLParser#parse() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: HTMLWorker.java    From gcs with Mozilla Public License 2.0 4 votes vote down vote up
public void parse(Reader reader) throws IOException {
	SimpleXMLParser.parse(this, null, reader, true);
}
 
Example 2
Source File: HTMLWorker.java    From itext2 with GNU Lesser General Public License v3.0 4 votes vote down vote up
public void parse(Reader reader) throws IOException {
	SimpleXMLParser.parse(this, null, reader, true);
}
 
Example 3
Source File: HTMLWorker.java    From sakai with Educational Community License v2.0 4 votes vote down vote up
public void parse(Reader reader) throws IOException {
	SimpleXMLParser.parse(this, null, reader, true);
}
 
Example 4
Source File: HTMLWorker.java    From sakai with Educational Community License v2.0 4 votes vote down vote up
public void parse(Reader reader) throws IOException {
	SimpleXMLParser.parse(this, null, reader, true);
}
 
Example 5
Source File: XfdfReader.java    From gcs with Mozilla Public License 2.0 2 votes vote down vote up
/**
 * Reads an XFDF form.
 * 
 * @param xfdfIn the byte array with the form
 * @throws IOException on error
 */
public XfdfReader(byte xfdfIn[]) throws IOException {
	SimpleXMLParser.parse(this, new ByteArrayInputStream(xfdfIn));
}
 
Example 6
Source File: SimpleNamedDestination.java    From gcs with Mozilla Public License 2.0 2 votes vote down vote up
/**
 * Import the names from XML.
 * 
 * @param in the XML source. The stream is not closed
 * @throws IOException on error
 * @return the names
 */
public static HashMap importFromXML(InputStream in) throws IOException {
	SimpleNamedDestination names = new SimpleNamedDestination();
	SimpleXMLParser.parse(names, in);
	return names.xmlNames;
}
 
Example 7
Source File: SimpleNamedDestination.java    From gcs with Mozilla Public License 2.0 2 votes vote down vote up
/**
 * Import the names from XML.
 * 
 * @param in the XML source. The reader is not closed
 * @throws IOException on error
 * @return the names
 */
public static HashMap importFromXML(Reader in) throws IOException {
	SimpleNamedDestination names = new SimpleNamedDestination();
	SimpleXMLParser.parse(names, in);
	return names.xmlNames;
}
 
Example 8
Source File: SimpleBookmark.java    From gcs with Mozilla Public License 2.0 2 votes vote down vote up
/**
 * Import the bookmarks from XML.
 * 
 * @param in the XML source. The stream is not closed
 * @throws IOException on error
 * @return the bookmarks
 */
public static List importFromXML(InputStream in) throws IOException {
	SimpleBookmark book = new SimpleBookmark();
	SimpleXMLParser.parse(book, in);
	return book.topList;
}
 
Example 9
Source File: SimpleBookmark.java    From gcs with Mozilla Public License 2.0 2 votes vote down vote up
/**
 * Import the bookmarks from XML.
 * 
 * @param in the XML source. The reader is not closed
 * @throws IOException on error
 * @return the bookmarks
 */
public static List importFromXML(Reader in) throws IOException {
	SimpleBookmark book = new SimpleBookmark();
	SimpleXMLParser.parse(book, in);
	return book.topList;
}
 
Example 10
Source File: XfdfReader.java    From itext2 with GNU Lesser General Public License v3.0 2 votes vote down vote up
/** Reads an XFDF form.
  * @param xfdfIn the byte array with the form
  * @throws IOException on error
  */    
 public XfdfReader(byte xfdfIn[]) throws IOException {
     SimpleXMLParser.parse( this, new ByteArrayInputStream(xfdfIn));
}
 
Example 11
Source File: SimpleNamedDestination.java    From itext2 with GNU Lesser General Public License v3.0 2 votes vote down vote up
/**
 * Import the names from XML.
 * @param in the XML source. The stream is not closed
 * @throws IOException on error
 * @return the names
 */
public static HashMap importFromXML(InputStream in) throws IOException {
    SimpleNamedDestination names = new SimpleNamedDestination();
    SimpleXMLParser.parse(names, in);
    return names.xmlNames;
}
 
Example 12
Source File: SimpleNamedDestination.java    From itext2 with GNU Lesser General Public License v3.0 2 votes vote down vote up
/**
 * Import the names from XML.
 * @param in the XML source. The reader is not closed
 * @throws IOException on error
 * @return the names
 */
public static HashMap importFromXML(Reader in) throws IOException {
    SimpleNamedDestination names = new SimpleNamedDestination();
    SimpleXMLParser.parse(names, in);
    return names.xmlNames;
}
 
Example 13
Source File: SimpleBookmark.java    From itext2 with GNU Lesser General Public License v3.0 2 votes vote down vote up
/**
 * Import the bookmarks from XML.
 * @param in the XML source. The stream is not closed
 * @throws IOException on error
 * @return the bookmarks
 */    
public static List importFromXML(InputStream in) throws IOException {
    SimpleBookmark book = new SimpleBookmark();
    SimpleXMLParser.parse(book, in);
    return book.topList;
}
 
Example 14
Source File: SimpleBookmark.java    From itext2 with GNU Lesser General Public License v3.0 2 votes vote down vote up
/**
 * Import the bookmarks from XML.
 * @param in the XML source. The reader is not closed
 * @throws IOException on error
 * @return the bookmarks
 */
public static List importFromXML(Reader in) throws IOException {
    SimpleBookmark book = new SimpleBookmark();
    SimpleXMLParser.parse(book, in);
    return book.topList;
}