Package jp.gr.java_conf.dangan.io
Class DisconnectableOutputStream
- java.lang.Object
-
- java.io.OutputStream
-
- jp.gr.java_conf.dangan.io.DisconnectableOutputStream
-
- All Implemented Interfaces:
java.io.Closeable,java.io.Flushable,java.lang.AutoCloseable,Disconnectable
public class DisconnectableOutputStream extends java.io.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 DisconnectableOutputStream(java.io.OutputStream out)out ???????}?????????\???o???X?g???[?????\?z?????B
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()???}???????o???X?g???[?????????}???????????B
?}?????\?b?h?? disconnect() ???????o?????????????Bvoiddisconnect()???}???????o???X?g???[?????????}???????????Bvoidflush()???}???????o???X?g???[?????~?????????f?[?^???S???o?????? ???????w???????Bvoidwrite(byte[] buffer)???}???????o???X?g???[???? buffer?????f?[?^?? ?S???o???????Bvoidwrite(byte[] buffer, int index, int length)???}???????o???X?g???[???? buffer?????f?[?^?? index???w???????????u???? length?o?C?g?o???????Bvoidwrite(int data)???}???????o???X?g???[???? 1?o?C?g???f?[?^???o???????B
-
-
-
Method Detail
-
write
public void write(int data) throws java.io.IOException???}???????o???X?g???[???? 1?o?C?g???f?[?^???o???????B- Specified by:
writein classjava.io.OutputStream- Parameters:
data- ?????}???????~?? 1?o?C?g???f?[?^?B
?????I??????3?o?C?g?????????????B- Throws:
java.io.IOException- ???o???G???[?????????????
-
write
public void write(byte[] buffer) throws java.io.IOException???}???????o???X?g???[???? buffer?????f?[?^?? ?S???o???????B- Overrides:
writein classjava.io.OutputStream- Parameters:
buffer- ?????}???????~???f?[?^???i?[???? ?o?C?g?z???B- Throws:
java.io.IOException- ???o???G???[?????????????
-
write
public void write(byte[] buffer, int index, int length) throws java.io.IOException???}???????o???X?g???[???? buffer?????f?[?^?? index???w???????????u???? length?o?C?g?o???????B- Overrides:
writein classjava.io.OutputStream- Parameters:
buffer- ?????}???????~???f?[?^???i?[???? ?o?C?g?z???Bindex- buffer?????????}???~???f?[?^???J?n???u?Blength- ?????}???~???f?[?^???B- Throws:
java.io.IOException- ???o???G???[?????????????
-
flush
public void flush() throws java.io.IOException???}???????o???X?g???[?????~?????????f?[?^???S???o?????? ???????w???????B- Specified by:
flushin interfacejava.io.Flushable- Overrides:
flushin classjava.io.OutputStream- Throws:
java.io.IOException- ???o???G???[?????????????
-
close
public void close()
???}???????o???X?g???[?????????}???????????B
?}?????\?b?h?? disconnect() ???????o?????????????B- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Overrides:
closein classjava.io.OutputStream
-
disconnect
public void disconnect()
???}???????o???X?g???[?????????}???????????B- Specified by:
disconnectin interfaceDisconnectable
-
-