Exemplo n.º 1
0
 public override void write(char[] cbuf, int off, int len)
 {
     char [] toWrite = new char[len - off];
     java.lang.SystemJ.arraycopy(cbuf, off, toWrite, 0, len);
     byte[] result = (byte[])cs.encode(new java.nio.ReadWriteCharArrayBuffer(toWrite)).array();
     delegateInstance.write(result);
 }
Exemplo n.º 2
0
 /**
  * Takes the contents of this stream and writes it to the output stream
  * {@code out}.
  *
  * @param out
  *            an OutputStream on which to write the contents of this stream.
  * @throws IOException
  *             if an error occurs while writing to {@code out}.
  */
 public void writeTo(OutputStream outJ)
 {
     //throws IOException {
     outJ.write(buf, 0, count);
 }
Exemplo n.º 3
0
 /*
  * Takes the contents of this stream and writes it to the output stream
  * {@code out}.
  *
  * @param out
  *            an OutputStream on which to write the contents of this stream.
  * @throws IOException
  *             if an error occurs while writing to {@code out}.
  */
 public void writeTo(OutputStream outJ)  //throws IOException {
 {
     outJ.write(buf, 0, count);
 }
Exemplo n.º 4
0
 public override void write(int b)
 {
     outJ.write(b);
 }