/** * Wraps the given {@link BytesStream} in a {@link StreamOutput} that simply flushes when * close is called. */ public static BytesStream flushOnCloseStream(BytesStream os) { return new FlushOnCloseOutputStream(os); }
@Override public void close() throws IOException { flush(); }
/** * Wraps the given {@link BytesStream} in a {@link StreamOutput} that simply flushes when * close is called. */ public static BytesStream flushOnCloseStream(BytesStream os) { return new FlushOnCloseOutputStream(os); }
@Override public void close() throws IOException { flush(); }
@Override public void close() throws IOException { flush(); }
/** * Wraps the given {@link BytesStream} in a {@link StreamOutput} that simply flushes when * close is called. */ public static BytesStream flushOnCloseStream(BytesStream os) { return new FlushOnCloseOutputStream(os); }
/** * Wraps the given {@link BytesStream} in a {@link StreamOutput} that simply flushes when * close is called. */ public static BytesStream flushOnCloseStream(BytesStream os) { return new FlushOnCloseOutputStream(os); }
@Override public void close() throws IOException { flush(); }