本文整理汇总了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;
}
示例2: handleException
import org.osgl.exception.UnexpectedIOException; //导入依赖的package包/类
@Catch(UnexpectedIOException.class)
public Result handleException(UnexpectedIOException e) {
return renderText(e.getClass().getName());
}
示例3: triggerException
import org.osgl.exception.UnexpectedIOException; //导入依赖的package包/类
@Description("E1 endpoint")
@GetAction("/e1")
public void triggerException() {
throw new UnexpectedIOException("x");
}
示例4: outputStream
import org.osgl.exception.UnexpectedIOException; //导入依赖的package包/类
@Override
public OutputStream outputStream() throws IllegalStateException, UnexpectedIOException {
return super.outputStream();
}
示例5: outputStream
import org.osgl.exception.UnexpectedIOException; //导入依赖的package包/类
@Override
public OutputStream outputStream() throws IllegalStateException, UnexpectedIOException {
osCache = new OutputStreamCache(realResponse.outputStream());
return osCache;
}
示例6: writer
import org.osgl.exception.UnexpectedIOException; //导入依赖的package包/类
@Override
public Writer writer() throws IllegalStateException, UnexpectedIOException {
writerCache = new WriterCache(realResponse.writer());
return writerCache;
}
示例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);
}
示例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);
}