Java 类org.apache.http.io.BufferInfo 实例源码

项目:lams    文件:ChunkedInputStream.java   
@Override
public int available() throws IOException {
    if (this.in instanceof BufferInfo) {
        int len = ((BufferInfo) this.in).length();
        return Math.min(len, this.chunkSize - this.pos);
    } else {
        return 0;
    }
}
项目:lams    文件:IdentityInputStream.java   
@Override
public int available() throws IOException {
    if (this.in instanceof BufferInfo) {
        return ((BufferInfo) this.in).length();
    } else {
        return 0;
    }
}
项目:lams    文件:ContentLengthInputStream.java   
@Override
public int available() throws IOException {
    if (this.in instanceof BufferInfo) {
        int len = ((BufferInfo) this.in).length();
        return Math.min(len, (int) (this.contentLength - this.pos));
    } else {
        return 0;
    }
}
项目:remote-files-sync    文件:ContentLengthInputStreamHC4.java   
@Override
public int available() throws IOException {
    if (this.in instanceof BufferInfo) {
        final int len = ((BufferInfo) this.in).length();
        return Math.min(len, (int) (this.contentLength - this.pos));
    } else {
        return 0;
    }
}
项目:remote-files-sync    文件:ChunkedInputStreamHC4.java   
@Override
public int available() throws IOException {
    if (this.in instanceof BufferInfo) {
        final int len = ((BufferInfo) this.in).length();
        return Math.min(len, this.chunkSize - this.pos);
    } else {
        return 0;
    }
}
项目:remote-files-sync    文件:IdentityInputStreamHC4.java   
@Override
public int available() throws IOException {
    if (this.in instanceof BufferInfo) {
        return ((BufferInfo) this.in).length();
    } else {
        return 0;
    }
}
项目:Visit    文件:ContentLengthInputStreamHC4.java   
@Override
public int available() throws IOException {
    if (this.in instanceof BufferInfo) {
        final int len = ((BufferInfo) this.in).length();
        return Math.min(len, (int) (this.contentLength - this.pos));
    } else {
        return 0;
    }
}
项目:Visit    文件:ChunkedInputStreamHC4.java   
@Override
public int available() throws IOException {
    if (this.in instanceof BufferInfo) {
        final int len = ((BufferInfo) this.in).length();
        return Math.min(len, this.chunkSize - this.pos);
    } else {
        return 0;
    }
}
项目:Visit    文件:IdentityInputStreamHC4.java   
@Override
public int available() throws IOException {
    if (this.in instanceof BufferInfo) {
        return ((BufferInfo) this.in).length();
    } else {
        return 0;
    }
}
项目:docker-java    文件:ChunkedInputStream.java   
@Override
public int available() throws IOException {
    if (this.in instanceof BufferInfo) {
        final int len = ((BufferInfo) this.in).length();
        return (int) Math.min(len, this.chunkSize - this.pos);
    } else {
        return 0;
    }
}
项目:ZTLib    文件:ContentLengthInputStreamHC4.java   
@Override
public int available() throws IOException {
    if (this.in instanceof BufferInfo) {
        final int len = ((BufferInfo) this.in).length();
        return Math.min(len, (int) (this.contentLength - this.pos));
    } else {
        return 0;
    }
}
项目:ZTLib    文件:ChunkedInputStreamHC4.java   
@Override
public int available() throws IOException {
    if (this.in instanceof BufferInfo) {
        final int len = ((BufferInfo) this.in).length();
        return Math.min(len, this.chunkSize - this.pos);
    } else {
        return 0;
    }
}
项目:ZTLib    文件:IdentityInputStreamHC4.java   
@Override
public int available() throws IOException {
    if (this.in instanceof BufferInfo) {
        return ((BufferInfo) this.in).length();
    } else {
        return 0;
    }
}