Added InputStream and Writer in constructor of Json classes
This commit is contained in:
parent
1dba0c88aa
commit
38f03585e4
4 changed files with 25 additions and 12 deletions
|
|
@ -31,6 +31,7 @@ import zutil.parser.DataNode.DataType;
|
|||
import java.io.OutputStream;
|
||||
import java.io.PrintStream;
|
||||
import java.io.PrintWriter;
|
||||
import java.io.Writer;
|
||||
import java.util.Iterator;
|
||||
|
||||
/**
|
||||
|
|
@ -55,7 +56,7 @@ public class JSONWriter{
|
|||
*
|
||||
* @param out the OutputStream that the Nodes will be sent to
|
||||
*/
|
||||
public JSONWriter(PrintStream out){
|
||||
public JSONWriter(Writer out){
|
||||
this( new PrintWriter(out) );
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue