/** Checks if the current position is a stop marker. * * @return false if a skip has to be done or eof has been reached, true otherwise. */ private boolean eofInBlock() { ensureBlocksNotEmpty(); ensureNotClosed(); return relativePos >= segmentLen; }
/** Checks if the current position is a stop marker. * * @return false if a skip has to be done or eof has been reached, true otherwise. */ private boolean eofInBlock() { ensureBlocksNotEmpty(); ensureNotClosed(); return relativePos >= segmentLen; }
/** Checks if the current position is a stop marker. * * @return false if a skip has to be done or eof has been reached, true otherwise. */ private boolean eofInBlock() { ensureBlocksNotEmpty(); ensureNotClosed(); return relativePos >= segmentLen; }
/** Skips to the next block, closing this segmented input stream if there are no more blocks. */ public void close() throws IOException { ensureBlocksNotEmpty(); if ( closed ) return; if ( hasMoreBlocks() ) { nextBlock(); return; } if ( DEBUG ) LOGGER.debug( "Closing the underlying input stream of this segmented input stream" ); closed = true; in.close(); }
/** Skips to the next block, closing this segmented input stream if there are no more blocks. */ @Override public void close() throws IOException { ensureBlocksNotEmpty(); if (closed) return; if (hasMoreBlocks()) { nextBlock(); return; } if (DEBUG) LOGGER.debug("Closing the underlying input stream of this segmented input stream"); closed = true; in.close(); }
/** Skips to the next block, closing this segmented input stream if there are no more blocks. */ public void close() throws IOException { ensureBlocksNotEmpty(); if ( closed ) return; if ( hasMoreBlocks() ) { nextBlock(); return; } if ( DEBUG ) LOGGER.debug( "Closing the underlying input stream of this segmented input stream" ); closed = true; in.close(); }