import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
public class DefaultParser implements SerialParserInterface{
public InputStream input;
public OutputStream output;
@Override
public void setStream(InputStream input, OutputStream output) {
this.input = input;
this.output = output;
}
public int read()throws IOException
{
return input.read();
}
public void write(String arg)throws IOException
{
byte[] temp = arg.getBytes();
write(temp);
}
public void write(byte[] arg) throws IOException{
this.output.write(arg);
}
}