All Downloads are FREE. Search and download functionalities are using the official Maven repository.

java.io.ByteArrayInputStream Maven / Gradle / Ivy

The newest version!
package java.io;

/**
 * @since CLDC 1.0
 */
public class ByteArrayInputStream extends InputStream {
    protected byte[] buf;
    protected int count;
    protected int mark;
    protected int pos;
    
    public ByteArrayInputStream(byte[] buf) {}
    public ByteArrayInputStream(byte[] buf, int offset, int length) {}
    
    public int available() {
        return -1;
    }
    
    /**
     * @throws IOException
     */
    public void close() throws IOException {}
    
    public void mark(int readAheadLimit) {}
    
    public boolean markSupported() {
        return false;
    }
    
    public int read() {
        return -1;
    }
    
    public int read(byte[] b, int off, int len) {
        return -1;
    }
    
    public void reset() {}
    
    public long skip(long n) {
        return -1;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy