186 |
/** |
/** |
187 |
* This method closes this stream and all underlying streams. |
* This method closes this stream and all underlying streams. |
188 |
*/ |
*/ |
189 |
public synchronized void close () |
public void close () |
190 |
{ |
{ |
191 |
pw.close (); |
pw.close (); |
192 |
closed = true; |
closed = true; |
459 |
* |
* |
460 |
* @param b The byte to be written |
* @param b The byte to be written |
461 |
*/ |
*/ |
462 |
public synchronized void write (int oneByte) |
public void write (int oneByte) |
463 |
{ |
{ |
464 |
// Sigh, we actually have to implement this method. Flush first so that |
// Sigh, we actually have to implement this method. Flush first so that |
465 |
// things get written in the right order. |
// things get written in the right order. |
486 |
* @param offset The index into the array to start writing from |
* @param offset The index into the array to start writing from |
487 |
* @param len The number of bytes to write |
* @param len The number of bytes to write |
488 |
*/ |
*/ |
489 |
public synchronized void write (byte[] buffer, int offset, int len) |
public void write (byte[] buffer, int offset, int len) |
490 |
{ |
{ |
491 |
// We actually have to implement this method too. Flush first so that |
// We actually have to implement this method too. Flush first so that |
492 |
// things get written in the right order. |
// things get written in the right order. |