Class DisconnectableOutputStream

java.lang.Object
java.io.OutputStream
jp.gr.java_conf.dangan.io.DisconnectableOutputStream
All Implemented Interfaces:
Closeable, Flushable, AutoCloseable, Disconnectable

public class DisconnectableOutputStream extends OutputStream implements Disconnectable
?f?[?^???????????o???????o???X?g???[???? ?f?[?^???f?o?C?X???o???????X?g???[?????? ???}???????????????????[?e?B???e?B?N???X?B
 -- revision history --
 $Log: DisconnectableOutputStream.java,v $
 Revision 1.0  2002/07/24 00:00:00  dangan
 add to version control
 [maintenance]
     ?^?u?p?~
     ???C?Z???X????C??
     ?\?[?X????
 
 
Version:
$Revision: 1.0 $
Author:
$Author: dangan $
  • Constructor Summary

    Constructors
    Constructor
    Description
    out ???????}?????????\???o???X?g???[?????\?z?????B
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    ???}???????o???X?g???[?????????}???????????B
    ?}?????\?b?h?? disconnect() ???????o?????????????B
    void
    ???}???????o???X?g???[?????????}???????????B
    void
    ???}???????o???X?g???[?????~?????????f?[?^???S???o?????? ???????w???????B
    void
    write(byte[] buffer)
    ???}???????o???X?g???[???? buffer?????f?[?^?? ?S???o???????B
    void
    write(byte[] buffer, int index, int length)
    ???}???????o???X?g???[???? buffer?????f?[?^?? index???w???????????u???? length?o?C?g?o???????B
    void
    write(int data)
    ???}???????o???X?g???[???? 1?o?C?g???f?[?^???o???????B

    Methods inherited from class java.io.OutputStream

    nullOutputStream

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • DisconnectableOutputStream

      public DisconnectableOutputStream(OutputStream out)
      out ???????}?????????\???o???X?g???[?????\?z?????B
      Parameters:
      out - ?o???X?g???[??
  • Method Details

    • write

      public void write(int data) throws IOException
      ???}???????o???X?g???[???? 1?o?C?g???f?[?^???o???????B
      Specified by:
      write in class OutputStream
      Parameters:
      data - ?????}???????~?? 1?o?C?g???f?[?^?B
      ?????I??????3?o?C?g?????????????B
      Throws:
      IOException - ???o???G???[?????????????
    • write

      public void write(byte[] buffer) throws IOException
      ???}???????o???X?g???[???? buffer?????f?[?^?? ?S???o???????B
      Overrides:
      write in class OutputStream
      Parameters:
      buffer - ?????}???????~???f?[?^???i?[???? ?o?C?g?z???B
      Throws:
      IOException - ???o???G???[?????????????
    • write

      public void write(byte[] buffer, int index, int length) throws IOException
      ???}???????o???X?g???[???? buffer?????f?[?^?? index???w???????????u???? length?o?C?g?o???????B
      Overrides:
      write in class OutputStream
      Parameters:
      buffer - ?????}???????~???f?[?^???i?[???? ?o?C?g?z???B
      index - buffer?????????}???~???f?[?^???J?n???u?B
      length - ?????}???~???f?[?^???B
      Throws:
      IOException - ???o???G???[?????????????
    • flush

      public void flush() throws IOException
      ???}???????o???X?g???[?????~?????????f?[?^???S???o?????? ???????w???????B
      Specified by:
      flush in interface Flushable
      Overrides:
      flush in class OutputStream
      Throws:
      IOException - ???o???G???[?????????????
    • close

      public void close()
      ???}???????o???X?g???[?????????}???????????B
      ?}?????\?b?h?? disconnect() ???????o?????????????B
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Overrides:
      close in class OutputStream
    • disconnect

      public void disconnect()
      ???}???????o???X?g???[?????????}???????????B
      Specified by:
      disconnect in interface Disconnectable