public static void writeUnsafe(PacketOutputStream out,InputStream is,boolean noBackslashEscapes) throws IOException {
  out.writeUnsafe(QUOTE);
  byte[] buffer=new byte[1024];
  int len;
  while ((len=is.read(buffer)) >= 0) {
    writeBytesEscapedUnsafe(out,buffer,len,noBackslashEscapes);
  }
  out.writeUnsafe(QUOTE);
}

public static void writeUnsafe ( PacketOutputStream out , InputStream is , boolean noBackslashEscapes ) throws IOException { out . writeUnsafe ( QUOTE ) ; byte [ ] buffer = new byte [ 1024 ] ; int len ; while ( ( len = is . read ( buffer ) ) >= 0 ) { writeBytesEscapedUnsafe ( out , buffer , len , noBackslashEscapes ) ; } out . writeUnsafe ( QUOTE ) ; }
write stream in text format without checking buffer size .
