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

com.javajy.api.b.a Maven / Gradle / Ivy

The newest version!
package com.javajy.api.b;

import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.io.InputStream;
import javax.servlet.ReadListener;
import javax.servlet.ServletInputStream;

public class a extends ServletInputStream {
    private ByteArrayInputStream o;
    private boolean p = false;

    public a(byte[] var1) {
        this.o = new ByteArrayInputStream(var1);
    }

    public final InputStream d() {
        return this.o;
    }

    public boolean isFinished() {
        return this.p;
    }

    public boolean isReady() {
        return true;
    }

    public void setReadListener(ReadListener var1) {
        throw new UnsupportedOperationException();
    }

    public int read() throws IOException {
        int var1 = this.o.read();
        if (var1 == -1) {
            this.p = true;
        }

        return var1;
    }

    public int available() {
        return this.o.available();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy