Java Code Examples for libcore.io.Streams#readSingleByte()

The following examples show how to use libcore.io.Streams#readSingleByte() . 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: StrictJarFile.java    From android_9.0.0_r45 with Apache License 2.0 4 votes vote down vote up
@Override public int read() throws IOException {
    return Streams.readSingleByte(this);
}
 
Example 2
Source File: FileInputStream.java    From j2objc with Apache License 2.0 4 votes vote down vote up
@Override public int read() throws IOException {
    return Streams.readSingleByte(this);
}
 
Example 3
Source File: InflaterInputStream.java    From jtransc with Apache License 2.0 2 votes vote down vote up
/**
    * Reads a single byte of decompressed data.
    *
    * @return the byte read.
    * @throws IOException
    *             if an error occurs reading the byte.
    */
   @Override
public int read() throws IOException {
       return Streams.readSingleByte(this);
   }
 
Example 4
Source File: DeflaterInputStream.java    From jtransc with Apache License 2.0 2 votes vote down vote up
/**
    * Reads a byte from the compressed input stream. The result will be a byte of compressed
    * data corresponding to an uncompressed byte or bytes read from the underlying stream.
    *
    * @return the byte or -1 if the end of the stream has been reached.
    */
   @Override
public int read() throws IOException {
       return Streams.readSingleByte(this);
   }