Beispiel #1
0
 /* (non-Javadoc)
  * @see java.io.OutputStream#write(byte[])
  */
 public void write(final byte[] b) throws IOException {
   if (b == null) throw new NullPointerException();
   p.writeBytes(b, 0, b.length);
 }
Beispiel #2
0
 /* (non-Javadoc)
  * @see java.io.OutputStream#write(byte[], int, int)
  */
 public void write(final byte[] b, final int off, final int len) throws IOException {
   if (b == null) throw new NullPointerException();
   if (off < 0 || off > b.length || len < 0 || off + len > b.length || off + len < 0)
     throw new IndexOutOfBoundsException();
   p.writeBytes(b, off, len);
 }
Beispiel #3
0
 /* (non-Javadoc)
  * @see java.io.OutputStream#write(int)
  */
 public void write(final int b) throws IOException {
   p.write(b);
 }