当前位置: 首页>>代码示例>>Java>>正文


Java UnexpectedIOException类代码示例

本文整理汇总了Java中org.osgl.exception.UnexpectedIOException的典型用法代码示例。如果您正苦于以下问题:Java UnexpectedIOException类的具体用法?Java UnexpectedIOException怎么用?Java UnexpectedIOException使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


UnexpectedIOException类属于org.osgl.exception包,在下文中一共展示了UnexpectedIOException类的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: createOutputStream

import org.osgl.exception.UnexpectedIOException; //导入依赖的package包/类
@Override
public OutputStream createOutputStream() throws IllegalStateException, UnexpectedIOException {
    E.illegalStateIf(null != writer);
    if (null == os) {
        os = new ByteArrayOutputStream();
    }
    return os;
}
 
开发者ID:actframework,项目名称:actframework,代码行数:9,代码来源:MockResponse.java

示例2: handleException

import org.osgl.exception.UnexpectedIOException; //导入依赖的package包/类
@Catch(UnexpectedIOException.class)
public Result handleException(UnexpectedIOException e) {
    return renderText(e.getClass().getName());
}
 
开发者ID:actframework,项目名称:act-demo-apps,代码行数:5,代码来源:ExceptionAdvice.java

示例3: triggerException

import org.osgl.exception.UnexpectedIOException; //导入依赖的package包/类
@Description("E1 endpoint")
@GetAction("/e1")
public void triggerException() {
    throw new UnexpectedIOException("x");
}
 
开发者ID:actframework,项目名称:act-demo-apps,代码行数:6,代码来源:HelloWorldApp.java

示例4: outputStream

import org.osgl.exception.UnexpectedIOException; //导入依赖的package包/类
@Override
public OutputStream outputStream() throws IllegalStateException, UnexpectedIOException {
    return super.outputStream();
}
 
开发者ID:actframework,项目名称:actframework,代码行数:5,代码来源:UndertowResponse.java

示例5: outputStream

import org.osgl.exception.UnexpectedIOException; //导入依赖的package包/类
@Override
public OutputStream outputStream() throws IllegalStateException, UnexpectedIOException {
    osCache = new OutputStreamCache(realResponse.outputStream());
    return osCache;
}
 
开发者ID:actframework,项目名称:actframework,代码行数:6,代码来源:ResponseCache.java

示例6: writer

import org.osgl.exception.UnexpectedIOException; //导入依赖的package包/类
@Override
public Writer writer() throws IllegalStateException, UnexpectedIOException {
    writerCache = new WriterCache(realResponse.writer());
    return writerCache;
}
 
开发者ID:actframework,项目名称:actframework,代码行数:6,代码来源:ResponseCache.java

示例7: outputStream

import org.osgl.exception.UnexpectedIOException; //导入依赖的package包/类
/**
 * Returns the output stream to write to the response
 *
 * @return output stream to the response
 * @throws java.lang.IllegalStateException          if
 *                                                  {@link #writer()} is called already
 * @throws org.osgl.exception.UnexpectedIOException if
 *                                                  there are output exception
 */
public OutputStream outputStream()
        throws IllegalStateException, UnexpectedIOException {
    return state.outputStream(this);
}
 
开发者ID:osglworks,项目名称:java-http,代码行数:14,代码来源:H.java

示例8: writer

import org.osgl.exception.UnexpectedIOException; //导入依赖的package包/类
/**
 * Returns the writer to write to the response
 *
 * @return writer to the response
 * @throws java.lang.IllegalStateException          if {@link #outputStream()} is called already
 * @throws org.osgl.exception.UnexpectedIOException if there are output exception
 */
public Writer writer()
        throws IllegalStateException, UnexpectedIOException {
    return state.writer(this);
}
 
开发者ID:osglworks,项目名称:java-http,代码行数:12,代码来源:H.java


注:本文中的org.osgl.exception.UnexpectedIOException类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。