Java Code Examples for org.apache.hadoop.fs.FSExceptionMessages#STREAM_IS_CLOSED
The following examples show how to use
org.apache.hadoop.fs.FSExceptionMessages#STREAM_IS_CLOSED .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: KeyOutputStream.java From hadoop-ozone with Apache License 2.0 | 5 votes |
/** * Verify that the output stream is open. Non blocking; this gives * the last state of the volatile {@link #closed} field. * @throws IOException if the connection is closed. */ private void checkNotClosed() throws IOException { if (closed) { throw new IOException( ": " + FSExceptionMessages.STREAM_IS_CLOSED + " Key: " + blockOutputStreamEntryPool.getKeyName()); } }
Example 2
Source File: KeyInputStream.java From hadoop-ozone with Apache License 2.0 | 5 votes |
/** * Verify that the input stream is open. Non blocking; this gives * the last state of the volatile {@link #closed} field. * @throws IOException if the connection is closed. */ private void checkOpen() throws IOException { if (closed) { throw new IOException( ": " + FSExceptionMessages.STREAM_IS_CLOSED + " Key: " + key); } }
Example 3
Source File: StrictBufferedFSInputStream.java From hadoop with Apache License 2.0 | 5 votes |
@Override public void seek(long pos) throws IOException { if (pos < 0) { throw new EOFException(FSExceptionMessages.NEGATIVE_SEEK); } if (in == null) { throw new SwiftConnectionClosedException(FSExceptionMessages.STREAM_IS_CLOSED); } super.seek(pos); }
Example 4
Source File: StrictBufferedFSInputStream.java From big-c with Apache License 2.0 | 5 votes |
@Override public void seek(long pos) throws IOException { if (pos < 0) { throw new EOFException(FSExceptionMessages.NEGATIVE_SEEK); } if (in == null) { throw new SwiftConnectionClosedException(FSExceptionMessages.STREAM_IS_CLOSED); } super.seek(pos); }
Example 5
Source File: S3AInputStream.java From hadoop with Apache License 2.0 | 4 votes |
private void checkNotClosed() throws IOException { if (closed) { throw new IOException(FSExceptionMessages.STREAM_IS_CLOSED); } }
Example 6
Source File: S3AInputStream.java From big-c with Apache License 2.0 | 4 votes |
private void checkNotClosed() throws IOException { if (closed) { throw new IOException(FSExceptionMessages.STREAM_IS_CLOSED); } }
Example 7
Source File: COSInputStream.java From stocator with Apache License 2.0 | 4 votes |
/** * Verify that the input stream is open. Non blocking; this gives * the last state of the volatile {@link #closed} field. * @throws IOException if the connection is closed */ private void checkNotClosed() throws IOException { if (closed) { throw new IOException(uri + ": " + FSExceptionMessages.STREAM_IS_CLOSED); } }