Java 类org.apache.commons.fileupload.util.Closeable 实例源码

项目:WidgetStore    文件:FileUploadBase.java   
/**
 * Returns an input stream, which may be used to
 * read the items contents.
 *
 * @return Opened input stream.
 * @throws IOException An I/O error occurred.
 */
public InputStream openStream() throws IOException {
    if (opened) {
        throw new IllegalStateException(
                "The stream was already opened.");
    }
    if (((Closeable) stream).isClosed()) {
        throw new FileItemStream.ItemSkippedException();
    }
    return stream;
}
项目:actframework    文件:ApacheMultipartParser.java   
/**
 * Returns an input stream, which may be used to read the items
 * contents.
 *
 * @return Opened input stream.
 * @throws IOException An I/O error occurred.
 */
public InputStream openStream() throws IOException {
    if (opened) {
        throw new IllegalStateException("The stream was already opened.");
    }
    if (((Closeable) stream).isClosed()) {
        throw new FileItemStream.ItemSkippedException();
    }
    return stream;
}
项目:restcommander    文件:ApacheMultipartParser.java   
/**
 * Returns an input stream, which may be used to read the items
 * contents.
 *
 * @return Opened input stream.
 * @throws IOException An I/O error occurred.
 */
public InputStream openStream() throws IOException {
    if (opened) {
        throw new IllegalStateException("The stream was already opened.");
    }
    if (((Closeable) stream).isClosed()) {
        throw new FileItemStream.ItemSkippedException();
    }
    return stream;
}
项目:cim    文件:FileUploadBase.java   
/**
 * Returns an input stream, which may be used to
 * read the items contents.
 *
 * @return Opened input stream.
 * @throws IOException An I/O error occurred.
 */
public InputStream openStream() throws IOException {
    if (opened) {
        throw new IllegalStateException(
                "The stream was already opened.");
    }
    if (((Closeable) stream).isClosed()) {
        throw new FileItemStream.ItemSkippedException();
    }
    return stream;
}
项目:AndroidWebServ    文件:FileUploadBase.java   
/**
 * Returns an input stream, which may be used to
 * read the items contents.
 *
 * @return Opened input stream.
 * @throws IOException An I/O error occurred.
 */
public InputStream openStream() throws IOException {
    if (opened) {
        throw new IllegalStateException(
                "The stream was already opened.");
    }
    if (((Closeable) stream).isClosed()) {
        throw new FileItemStream.ItemSkippedException();
    }
    return stream;
}