/** * Returns 0 when when this stream has exhausted its input; and 1 otherwise. * A result of 1 does not guarantee that further bytes can be returned, * with or without blocking. * * <p>Although consistent with the RI, this behavior is inconsistent with * {@link InputStream#available()}, and violates the <a * href="http://en.wikipedia.org/wiki/Liskov_substitution_principle">Liskov * Substitution Principle</a>. This method should not be used. * * @return 0 if no further bytes are available. Otherwise returns 1, * which suggests (but does not guarantee) that additional bytes are * available. * @throws IOException if this stream is closed or an error occurs */ @Override public int available() throws IOException { checkClosed(); if (eof) { return 0; } return 1; }
/** * Fills the input buffer with data to be decompressed. * * @throws IOException * if an {@code IOException} occurs. */ protected void fill() throws IOException { checkClosed(); if (nativeEndBufSize > 0) { ZipFile.RAFStream is = (ZipFile.RAFStream) in; len = is.fill(inf, nativeEndBufSize); } else { if ((len = in.read(buf)) > 0) { inf.setInput(buf, 0, len); } } }
checkClosed(); Arrays.checkOffsetAndCount(buffer.length, byteOffset, byteCount);
/** * Returns 0 when when this stream has exhausted its input; and 1 otherwise. * A result of 1 does not guarantee that further bytes can be returned, * with or without blocking. * * <p>Although consistent with the RI, this behavior is inconsistent with * {@link InputStream#available()}, and violates the <a * href="http://en.wikipedia.org/wiki/Liskov_substitution_principle">Liskov * Substitution Principle</a>. This method should not be used. * * @return 0 if no further bytes are available. Otherwise returns 1, * which suggests (but does not guarantee) that additional bytes are * available. * @throws IOException if this stream is closed or an error occurs */ @Override public int available() throws IOException { checkClosed(); if (eof) { return 0; } return 1; }
/** * Returns 0 when when this stream has exhausted its input; and 1 otherwise. * A result of 1 does not guarantee that further bytes can be returned, * with or without blocking. * * <p>Although consistent with the RI, this behavior is inconsistent with * {@link InputStream#available()}, and violates the <a * href="http://en.wikipedia.org/wiki/Liskov_substitution_principle">Liskov * Substitution Principle</a>. This method should not be used. * * @return 0 if no further bytes are available. Otherwise returns 1, * which suggests (but does not guarantee) that additional bytes are * available. * @throws IOException if this stream is closed or an error occurs */ @Override public int available() throws IOException { checkClosed(); if (eof) { return 0; } return 1; }
/** * Returns 0 when when this stream has exhausted its input; and 1 otherwise. * A result of 1 does not guarantee that further bytes can be returned, * with or without blocking. * * <p>Although consistent with the RI, this behavior is inconsistent with * {@link InputStream#available()}, and violates the <a * href="http://en.wikipedia.org/wiki/Liskov_substitution_principle">Liskov * Substitution Principle</a>. This method should not be used. * * @return 0 if no further bytes are available. Otherwise returns 1, * which suggests (but does not guarantee) that additional bytes are * available. * @throws IOException if this stream is closed or an error occurs */ @Override public int available() throws IOException { checkClosed(); if (eof) { return 0; } return 1; }
/** * Returns 0 when when this stream has exhausted its input; and 1 otherwise. * A result of 1 does not guarantee that further bytes can be returned, * with or without blocking. * * <p>Although consistent with the RI, this behavior is inconsistent with * {@link InputStream#available()}, and violates the <a * href="http://en.wikipedia.org/wiki/Liskov_substitution_principle">Liskov * Substitution Principle</a>. This method should not be used. * * @return 0 if no further bytes are available. Otherwise returns 1, * which suggests (but does not guarantee) that additional bytes are * available. * @throws IOException if this stream is closed or an error occurs */ @Override public int available() throws IOException { checkClosed(); if (eof) { return 0; } return 1; }
/** * Returns 0 when when this stream has exhausted its input; and 1 otherwise. * A result of 1 does not guarantee that further bytes can be returned, * with or without blocking. * * <p>Although consistent with the RI, this behavior is inconsistent with * {@link InputStream#available()}, and violates the <a * href="http://en.wikipedia.org/wiki/Liskov_substitution_principle">Liskov * Substitution Principle</a>. This method should not be used. * * @return 0 if no further bytes are available. Otherwise returns 1, * which suggests (but does not guarantee) that additional bytes are * available. * @throws IOException if this stream is closed or an error occurs */ @Override public int available() throws IOException { checkClosed(); if (eof) { return 0; } return 1; }
/** * Returns 0 when when this stream has exhausted its input; and 1 otherwise. * A result of 1 does not guarantee that further bytes can be returned, * with or without blocking. * * <p>Although consistent with the RI, this behavior is inconsistent with * {@link InputStream#available()}, and violates the <a * href="http://en.wikipedia.org/wiki/Liskov_substitution_principle">Liskov * Substitution Principle</a>. This method should not be used. * * @return 0 if no further bytes are available. Otherwise returns 1, * which suggests (but does not guarantee) that additional bytes are * available. * @throws IOException if this stream is closed or an error occurs */ @Override public int available() throws IOException { checkClosed(); if (eof) { return 0; } return 1; }
/** * Returns 0 when when this stream has exhausted its input; and 1 otherwise. * A result of 1 does not guarantee that further bytes can be returned, * with or without blocking. * * <p>Although consistent with the RI, this behavior is inconsistent with * {@link InputStream#available()}, and violates the <a * href="http://en.wikipedia.org/wiki/Liskov_substitution_principle">Liskov * Substitution Principle</a>. This method should not be used. * * @return 0 if no further bytes are available. Otherwise returns 1, * which suggests (but does not guarantee) that additional bytes are * available. * @throws IOException if this stream is closed or an error occurs */ @Override public int available() throws IOException { checkClosed(); if (eof) { return 0; } return 1; }
/** * Fills the input buffer with data to be decompressed. * * @throws IOException * if an {@code IOException} occurs. */ protected void fill() throws IOException { checkClosed(); //if (nativeEndBufSize > 0) { // ZipFile.RAFStream is = (ZipFile.RAFStream) in; // len = is.fill(inf, nativeEndBufSize); //} else { if ((len = in.read(buf)) > 0) { inf.setInput(buf, 0, len); } //} }
/** * Fills the input buffer with data to be decompressed. * * @throws IOException * if an {@code IOException} occurs. */ protected void fill() throws IOException { checkClosed(); if (nativeEndBufSize > 0) { ZipFile.RAFStream is = (ZipFile.RAFStream) in; len = is.fill(inf, nativeEndBufSize); } else { if ((len = in.read(buf)) > 0) { inf.setInput(buf, 0, len); } } }
/** * Fills the input buffer with data to be decompressed. * * @throws IOException * if an {@code IOException} occurs. */ protected void fill() throws IOException { checkClosed(); if (nativeEndBufSize > 0) { ZipFile.RAFStream is = (ZipFile.RAFStream) in; len = is.fill(inf, nativeEndBufSize); } else { if ((len = in.read(buf)) > 0) { inf.setInput(buf, 0, len); } } }
/** * Fills the input buffer with data to be decompressed. * * @throws IOException * if an {@code IOException} occurs. */ protected void fill() throws IOException { checkClosed(); if (nativeEndBufSize > 0) { ZipFile.RAFStream is = (ZipFile.RAFStream) in; len = is.fill(inf, nativeEndBufSize); } else { if ((len = in.read(buf)) > 0) { inf.setInput(buf, 0, len); } } }
/** * Fills the input buffer with data to be decompressed. * * @throws IOException * if an {@code IOException} occurs. */ protected void fill() throws IOException { checkClosed(); if (nativeEndBufSize > 0) { ZipFile.RAFStream is = (ZipFile.RAFStream) in; len = is.fill(inf, nativeEndBufSize); } else { if ((len = in.read(buf)) > 0) { inf.setInput(buf, 0, len); } } }
/** * Fills the input buffer with data to be decompressed. * * @throws IOException * if an {@code IOException} occurs. */ protected void fill() throws IOException { checkClosed(); if (nativeEndBufSize > 0) { ZipFile.RAFStream is = (ZipFile.RAFStream) in; len = is.fill(inf, nativeEndBufSize); } else { if ((len = in.read(buf)) > 0) { inf.setInput(buf, 0, len); } } }
/** * Fills the input buffer with data to be decompressed. * * @throws IOException * if an {@code IOException} occurs. */ protected void fill() throws IOException { checkClosed(); if (nativeEndBufSize > 0) { ZipFile.RAFStream is = (ZipFile.RAFStream) in; len = is.fill(inf, nativeEndBufSize); } else { if ((len = in.read(buf)) > 0) { inf.setInput(buf, 0, len); } } }
checkClosed(); Arrays.checkOffsetAndCount(buffer.length, byteOffset, byteCount);
checkClosed(); JTranscArrays.checkOffsetAndCount(buffer.length, byteOffset, byteCount);
checkClosed(); Arrays.checkOffsetAndCount(buffer.length, byteOffset, byteCount);