⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 r.java

📁 webviwer,一个基于j2me的浏览器
💻 JAVA
字号:
// Decompiled by Jad v1.5.7g. Copyright 2000 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/SiliconValley/Bridge/8617/jad.html
// Decompiler options: packimports(3) fieldsfirst ansi 

import java.io.IOException;
import java.io.InputStream;

class r extends InputStream
{

    protected InputStream a;
    protected int c;
    private byte b;

    public r(InputStream inputstream, byte byte0)
    {
        c = 0;
        a = inputstream;
        b = byte0;
    }

    public int available()
        throws IOException
    {
        return a.available();
    }

    public void close()
        throws IOException
    {
        a.close();
    }

    public int read()
        throws IOException
    {
        int i = a.read();
        if(i != -1)
            c++;
        return i;
    }

    public int read(byte abyte0[])
        throws IOException
    {
        return read(abyte0, 0, abyte0.length);
    }

    public int read(byte abyte0[], int i, int j)
        throws IOException
    {
        if(b == 3)
        {
            if(i < 0 || j < 0 || i + j > abyte0.length)
                throw new IndexOutOfBoundsException();
            int k;
            for(k = 0; k < j;)
            {
                int i1 = a.read();
                if(i1 == -1)
                {
                    if(k == 0)
                        return -1;
                    break;
                }
                c++;
                abyte0[i + k++] = (byte)i1;
            }

            return k;
        }
        if(b == 4 && j > 256)
            j = 256;
        int l = a.read(abyte0, i, j);
        if(l > 0)
            c += l;
        return l;
    }

    public long skip(long l)
        throws IOException
    {
        long l1 = a.skip(l);
        if(l1 > 0L)
            c += (int)l1;
        return l1;
    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -