⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 httpdocumentoutputstream.java

📁 It is all about project scheduling. GanttProject is a tool for creating a project schedule by means
💻 JAVA
字号:
/* * Created on 18.08.2003 * */package net.sourceforge.ganttproject.document;import java.io.ByteArrayOutputStream;import java.io.IOException;import org.apache.commons.httpclient.HttpException;import org.apache.webdav.lib.WebdavResource;/** * This class implements an OutputStream for documents on * WebDAV-enabled-servers. It is a helper class for HttpDocument. *  * @see HttpDocument * @author Michael Haeusler (michael at akatose.de) */class HttpDocumentOutputStream extends ByteArrayOutputStream {    private WebdavResource webdavResource;    public HttpDocumentOutputStream(WebdavResource webdavResource) {        super();        this.webdavResource = webdavResource;    }    public void close() throws IOException {        try {            super.close();        } finally {            try {                webdavResource.putMethod(toByteArray());            } catch (HttpException e) {                throw new IOException(e.getMessage() + "(" + e.getReasonCode()                        + ")");            }        }    }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -