org.trialox.jaxrs.util
Class FirstByteActionOutputStream
java.lang.Object
java.io.OutputStream
org.trialox.jaxrs.util.FirstByteActionOutputStream
- All Implemented Interfaces:
- java.io.Closeable, java.io.Flushable
public class FirstByteActionOutputStream
- extends java.io.OutputStream
An outputstream that executes an action when the firts character is writter
- Author:
- reto
| Methods inherited from class java.io.OutputStream |
write, write |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FirstByteActionOutputStream
public FirstByteActionOutputStream(java.io.OutputStream base,
java.lang.Runnable action)
write
public void write(int b)
throws java.io.IOException
- Specified by:
write in class java.io.OutputStream
- Throws:
java.io.IOException
close
public void close()
throws java.io.IOException
- Specified by:
close in interface java.io.Closeable- Overrides:
close in class java.io.OutputStream
- Throws:
java.io.IOException
flush
public void flush()
throws java.io.IOException
- Specified by:
flush in interface java.io.Flushable- Overrides:
flush in class java.io.OutputStream
- Throws:
java.io.IOException
Copyright © 2008. All Rights Reserved.