【Java开源代码栏目提醒】:网学会员,鉴于大家对Java开源代码十分关注,论文会员在此为大家搜集整理了“ServletOut.java”一文,供大家参考学习!
// ========================================================================
// Copyright (c) 2000 Mort Bay Consulting (Australia) Pty. Ltd.
// $Id: ServletOut.java,v 1.6 2000/11/19 01:37:50 gregwilkins Exp $
// ========================================================================
package com.mortbay.HTTP.Handler.Servlet;
import java.io.IOException;
import java.io.OutputStream;
import com.mortbay.Util.IO;
import javax.servlet.ServletOutputStream;
class ServletOut extends ServletOutputStream
{
OutputStream _out;
/* ------------------------------------------------------------ */
ServletOut(OutputStream out)
{
_out=out;
}
/* ------------------------------------------------------------ */
public void write(int ch)
throws IOException
{
_out.write(ch);
}
/* ------------------------------------------------------------ */
public void write(byte[]b)
throws IOException
{
_out.write(b);
}
/* ------------------------------------------------------------ */
public void write(byte[]b,int o,int l)
throws IOException
{
_out.write(b,o,l);
}
/* ------------------------------------------------------------ */
public void flush()
throws IOException
{
_out.flush();
}
/* ------------------------------------------------------------ */
public void close()
throws IOException
{
_out.close();
}
/* ------------------------------------------------------------ */
public void disable()
throws IOException
{
_out=IO.getNullStream();
}
}
上一篇:
ServletInputStream.java
下一篇:
首页轮播3.jpg