金坛河长通 v1.1.6版本的 MD5 值为:20e883288031684b3415ea19cd21af4d
以下内容为反编译后的 Parser.java 源代码,内容仅作参考
package com.hp.hpl.sparta;
import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.Reader;
public class Parser {
public static Document parse(String str) throws ParseException, IOException {
return parse(str.toCharArray());
}
public static Document parse(String str, InputStream inputStream) throws ParseException, IOException {
BuildDocument buildDocument = new BuildDocument();
new ParseByteStream(str, inputStream, null, null, buildDocument);
return buildDocument.getDocument();
}
public static Document parse(String str, InputStream inputStream, ParseLog parseLog) throws ParseException, IOException {
BuildDocument buildDocument = new BuildDocument();
new ParseByteStream(str, inputStream, parseLog, null, buildDocument);
return buildDocument.getDocument();
}
public static Document parse(String str, InputStream inputStream, ParseLog parseLog, String str2) throws ParseException, IOException {
BuildDocument buildDocument = new BuildDocument();
new ParseByteStream(str, inputStream, parseLog, str2, buildDocument);
return buildDocument.getDocument();
}
public static Document parse(String str, Reader reader) throws ParseException, IOException {
BuildDocument buildDocument = new BuildDocument();
new ParseCharStream(str, reader, (ParseLog) null, (String) null, buildDocument);
return buildDocument.getDocument();
}
public static Document parse(String str, Reader reader, ParseLog parseLog) throws ParseException, IOException {
BuildDocument buildDocument = new BuildDocument();
new ParseCharStream(str, reader, parseLog, (String) null, buildDocument);
return buildDocument.getDocument();
}
public static Document parse(String str, Reader reader, ParseLog parseLog, String str2) throws ParseException, EncodingMismatchException, IOException {
BuildDocument buildDocument = new BuildDocument();
new ParseCharStream(str, reader, parseLog, str2, buildDocument);
return buildDocument.getDocument();
}
public static Document parse(byte[] bArr) throws ParseException, IOException {
BuildDocument buildDocument = new BuildDocument();
new ParseByteStream("file:anonymous-string", new ByteArrayInputStream(bArr), null, null, buildDocument);
return buildDocument.getDocument();
}
public static Document parse(char[] cArr) throws ParseException, IOException {
BuildDocument buildDocument = new BuildDocument();
new ParseCharStream("file:anonymous-string", cArr, (ParseLog) null, (String) null, buildDocument);
return buildDocument.getDocument();
}
public static void parse(String str, ParseHandler parseHandler) throws ParseException, IOException {
parse(str.toCharArray(), parseHandler);
}
public static void parse(String str, InputStream inputStream, ParseHandler parseHandler) throws ParseException, IOException {
new ParseByteStream(str, inputStream, null, null, parseHandler);
}
public static void parse(String str, InputStream inputStream, ParseLog parseLog, ParseHandler parseHandler) throws ParseException, IOException {
new ParseByteStream(str, inputStream, parseLog, null, parseHandler);
}
public static void parse(String str, InputStream inputStream, ParseLog parseLog, String str2, ParseHandler parseHandler) throws ParseException, IOException {
new ParseByteStream(str, inputStream, parseLog, str2, parseHandler);
}
public static void parse(String str, Reader reader, ParseHandler parseHandler) throws ParseException, IOException {
new ParseCharStream(str, reader, (ParseLog) null, (String) null, parseHandler);
}
public static void parse(String str, Reader reader, ParseLog parseLog, ParseHandler parseHandler) throws ParseException, IOException {
new ParseCharStream(str, reader, parseLog, (String) null, parseHandler);
}
public static void parse(String str, Reader reader, ParseLog parseLog, String str2, ParseHandler parseHandler) throws ParseException, EncodingMismatchException, IOException {
new ParseCharStream(str, reader, parseLog, str2, parseHandler);
}
public static void parse(byte[] bArr, ParseHandler parseHandler) throws ParseException, IOException {
new ParseByteStream("file:anonymous-string", new ByteArrayInputStream(bArr), null, null, parseHandler);
}
public static void parse(char[] cArr, ParseHandler parseHandler) throws ParseException, IOException {
new ParseCharStream("file:anonymous-string", cArr, (ParseLog) null, (String) null, parseHandler);
}
}