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

📄 inputstreamutil_p.java

📁 经过反编译和部分代码修改后的ultraimpro java源代码。可在netbean环境下成功编译。供学习和分析用。
💻 JAVA
字号:
// Decompiled by DJ v3.9.9.91 Copyright 2005 Atanas Neshkov  Date: 2006-5-1 19:31:43
// Home Page : http://members.fortunecity.com/neshkov/dj.html  - Check often for new version!
// Decompiler options: packimports(3) 

import java.io.IOException;
import java.io.InputStream;
import java.util.Vector;

public final class InputStreamUtil_p
{

    public InputStreamUtil_p(InputStream inputstream, String s)
    {
        strEncodingFormat = "";
        a_java_io_InputStream_fld = inputstream;
        strEncodingFormat = s;
    }

    public InputStreamUtil_p(InputStream inputstream)
    {
        this(inputstream, "");
    }

    public final String ReadLine()
    {
        byte abyte0[] = new byte[800];
        int i = 0;
        int j = 0;
        try
        {
            while(j < abyte0.length && (i = a_java_io_InputStream_fld.read()) != 10 && i != -1) 
            {
                abyte0[j] = (byte)i;
                j++;
            }
        }
        catch(IOException _ex)
        {
            return null;
        }
        if(i == -1)
            return null;
        if(j == abyte0.length)
            return "err";
        String s;
        if(strEncodingFormat.equals(""))
            s = new String(abyte0, 0, j);
        else
            s = Utf8Util_ao.Decode(abyte0, 0, j);
        return s;
    }

    public final byte[] ReadBytes(int i)
        throws IOException
    {
        byte abyte0[];
        int k;
        if(i <= 0)
            return null;
        abyte0 = new byte[i];
        boolean flag = false;
        k = 0;
//_L3:
        //for (k = 0; k < i; ;)
        while(k < i)
        {
        //if(k >= i) goto _L2; else goto _L1
//_L1:
        int j;
        if((j = a_java_io_InputStream_fld.read(abyte0, k, i - k)) == -1)
            return null;
        k += j;
        }
        //  goto _L3
        //JVM INSTR dup ;
        //IOException ioexception;
        //ioexception;
        //throw ioexception;
//_L2:
        return abyte0;
    }

    public final int ReadBytes(byte abyte0[])
    {
        if(abyte0 == null || abyte0.length == 0)
            return 0;
        int i = abyte0.length;
        int j = 0;
        int k = 0;
        try
        {
            while(k < i && (j = a_java_io_InputStream_fld.read(abyte0, k, i - k)) != -1) 
                k += j;
        }
        catch(IOException _ex) { }
        return k;
    }

    public final Vector a(int i, int j)
    {
        Vector vector = new Vector();
        boolean flag = false;
        int l = 0;
        do
        {
            if(l >= i)
                break;
            byte abyte0[] = new byte[j];
            int k;
            if((k = ReadBytes(abyte0)) < j)
            {
                if(k > 0)
                {
                    byte abyte1[] = new byte[k];
                    System.arraycopy(abyte0, 0, abyte1, 0, k);
                    vector.addElement(abyte1);
                }
                break;
            }
            vector.addElement(abyte0);
            l++;
        } while(true);
        return vector;
    }

    public InputStream a_java_io_InputStream_fld;
    public String strEncodingFormat;
}

⌨️ 快捷键说明

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