jmri.web.miniserver
Class MiniServletOutputStream

java.lang.Object
  extended by java.io.OutputStream
      extended by javax.servlet.ServletOutputStream
          extended by jmri.web.miniserver.MiniServletOutputStream
All Implemented Interfaces:
Closeable, Flushable

public class MiniServletOutputStream
extends javax.servlet.ServletOutputStream

Although not the same as ServletOutputStream, this is meant to be method-signature compatible, so that we can move to servlets later on.

Author:
Bob Jacobsen Copyright 2008

Constructor Summary
MiniServletOutputStream(OutputStream out)
           
 
Method Summary
 void write(byte[] buf, int offset, int len)
           
 void write(int val)
           
 
Methods inherited from class javax.servlet.ServletOutputStream
print, print, print, print, print, print, print, println, println, println, println, println, println, println, println
 
Methods inherited from class java.io.OutputStream
close, flush, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MiniServletOutputStream

public MiniServletOutputStream(OutputStream out)
Method Detail

write

public void write(int val)
           throws IOException
Specified by:
write in class OutputStream
Throws:
IOException

write

public void write(byte[] buf,
                  int offset,
                  int len)
           throws IOException
Overrides:
write in class OutputStream
Throws:
IOException


Copyright © 1997 - 2011 JMRI Community.
JMRI, DecoderPro, PanelPro, SoundPro, DispatcherPro and associated logos are our trademarks.

Additional information on copyright, trademarks and licenses is linked here.
Site hosted by: Get JMRI Model Railroad Interface at SourceForge.net. Fast, secure and Free Open Source software downloads