コード例 #1
0
public void @this(global::java.io.InputStream n1){
//XMLVM_BEGIN_WRAPPER[gnu.java.net.CRLFInputStream: void <init>(java.io.InputStream)]
    global::org.xmlvm._nElement _r0;
    global::System.Object _r0_o = null;
    global::System.Object _r1_o = null;
    global::System.Object _r2_o = null;
    _r1_o = this;
    _r2_o = n1;
    ((global::java.io.InputStream) _r1_o).@this();
    _r0.i = ((global::java.io.InputStream) _r2_o).markSupported() ? 1 : 0;
    if (_r0.i == 0) goto label13;
    _r0_o = _r2_o;
    label10:;
    ((global::gnu.java.net.CRLFInputStream) _r1_o)._fin = (global::java.io.InputStream) _r0_o;
    return;
    label13:;
    _r0_o = new global::java.io.BufferedInputStream();
    ((global::java.io.BufferedInputStream) _r0_o).@this((global::java.io.InputStream) _r2_o);
    goto label10;
//XMLVM_END_WRAPPER[gnu.java.net.CRLFInputStream: void <init>(java.io.InputStream)]
}
コード例 #2
0
ファイル: XmlParser.cs プロジェクト: shannah/CN1WindowsPort
private void pushURL(bool n1, global::java.lang.String n2, global::gnu.xml.aelfred2.XmlParser_2ExternalIdentifiers n3, global::java.io.Reader n4, global::java.io.InputStream n5, global::java.lang.String n6, bool n7){
//XMLVM_BEGIN_WRAPPER[gnu.xml.aelfred2.XmlParser: void pushURL(boolean, java.lang.String, gnu.xml.aelfred2.XmlParser$ExternalIdentifiers, java.io.Reader, java.io.InputStream, java.lang.String, boolean)]
    global::org.xmlvm._nElement _r0;
    global::System.Object _r0_o = null;
    global::org.xmlvm._nElement _r1;
    global::System.Object _r1_o = null;
    global::org.xmlvm._nElement _r2;
    global::System.Object _r2_o = null;
    global::org.xmlvm._nElement _r3;
    global::System.Object _r3_o = null;
    global::org.xmlvm._nElement _r4;
    global::System.Object _r4_o = null;
    global::System.Object _r5_o = null;
    global::System.Object _r6_o = null;
    global::System.Object _r7_o = null;
    global::org.xmlvm._nElement _r8;
    global::System.Object _r9_o = null;
    global::System.Object _r10_o = null;
    global::System.Object _r11_o = null;
    global::System.Object _r12_o = null;
    global::System.Object _r13_o = null;
    global::org.xmlvm._nElement _r14;
    global::org.xmlvm._nExceptionAdapter _ex = null;
    _r7_o = this;
    _r8.i = n1 ? 1 : 0;
    _r9_o = n2;
    _r10_o = n3;
    _r11_o = n4;
    _r12_o = n5;
    _r13_o = n6;
    _r14.i = n7 ? 1 : 0;
    if (_r8.i != 0) goto label5;
    ((global::gnu.xml.aelfred2.XmlParser) _r7_o).dataBufferFlush();
    label5:;
    _r0_o = ((global::gnu.xml.aelfred2.XmlParser) _r7_o)._fscratch;
    _r1_o = ((global::gnu.xml.aelfred2.XmlParser_2ExternalIdentifiers) _r10_o)._fpublicId;
    ((global::org.xml.sax.InputSource) _r0_o).setPublicId((global::java.lang.String) _r1_o);
    _r0_o = ((global::gnu.xml.aelfred2.XmlParser) _r7_o)._fscratch;
    _r1_o = ((global::gnu.xml.aelfred2.XmlParser_2ExternalIdentifiers) _r10_o)._fsystemId;
    ((global::org.xml.sax.InputSource) _r0_o).setSystemId((global::java.lang.String) _r1_o);
    if (_r14.i == 0) goto label152;
    _r0_o = ((global::gnu.xml.aelfred2.XmlParser) _r7_o)._fhandler;
    _r1_o = ((global::gnu.xml.aelfred2.XmlParser) _r7_o)._fscratch;
    _r2_o = ((global::gnu.xml.aelfred2.XmlParser_2ExternalIdentifiers) _r10_o)._fbaseUri;
    _r0_o = ((global::gnu.xml.aelfred2.SAXDriver) _r0_o).resolveEntity(0!=_r8.i, (global::java.lang.String) _r9_o, (global::org.xml.sax.InputSource) _r1_o, (global::java.lang.String) _r2_o);
    if (_r0_o != null) goto label64;
    _r0_o = ((global::gnu.xml.aelfred2.XmlParser) _r7_o)._fhandler;
    _r1_o = new global::java.lang.StringBuilder();
    // Value=skipping entity: 
    _r2_o = new global::java.lang.String();
    ((global::java.lang.String)_r2_o).@this(new global::org.xmlvm._nArrayAdapter<char>(new char[] {unchecked((char) unchecked((uint)115)), unchecked((char) unchecked((uint) 107)), unchecked((char) unchecked((uint) 105)), unchecked((char) unchecked((uint) 112)), unchecked((char) unchecked((uint) 112)), unchecked((char) unchecked((uint) 105)), unchecked((char) unchecked((uint) 110)), unchecked((char) unchecked((uint) 103)), unchecked((char) unchecked((uint) 32)), unchecked((char) unchecked((uint) 101)), unchecked((char) unchecked((uint) 110)), unchecked((char) unchecked((uint) 116)), unchecked((char) unchecked((uint) 105)), unchecked((char) unchecked((uint) 116)), unchecked((char) unchecked((uint) 121)), unchecked((char) unchecked((uint) 58)), unchecked((char) unchecked((uint) 32))}));
    ((global::java.lang.StringBuilder) _r1_o).@this((global::java.lang.String) _r2_o);
    _r1_o = ((global::java.lang.StringBuilder) _r1_o).append((global::java.lang.String) _r9_o);
    _r1_o = ((global::java.lang.StringBuilder) _r1_o).toString();
    ((global::gnu.xml.aelfred2.SAXDriver) _r0_o).warn((global::java.lang.String) _r1_o);
    _r0_o = ((global::gnu.xml.aelfred2.XmlParser) _r7_o)._fhandler;
    ((global::gnu.xml.aelfred2.SAXDriver) _r0_o).skippedEntity((global::java.lang.String) _r9_o);
    if (_r8.i == 0) goto label63;
    _r0.i = 1;
    ((global::gnu.xml.aelfred2.XmlParser) _r7_o)._fskippedPE = 0!=_r0.i;
    label63:;
    return;
    label64:;
    _r1_o = ((global::org.xml.sax.InputSource) _r0_o).getSystemId();
    label68:;
    _r2_o = ((global::org.xml.sax.InputSource) _r0_o).getCharacterStream();
    if (_r2_o == null) goto label203;
    _r2_o = ((global::org.xml.sax.InputSource) _r0_o).getByteStream();
    if (_r2_o == null) goto label85;
    // Value=InputSource has two streams!
    _r2_o = new global::java.lang.String();
    ((global::java.lang.String)_r2_o).@this(new global::org.xmlvm._nArrayAdapter<char>(new char[] {unchecked((char) unchecked((uint)73)), unchecked((char) unchecked((uint) 110)), unchecked((char) unchecked((uint) 112)), unchecked((char) unchecked((uint) 117)), unchecked((char) unchecked((uint) 116)), unchecked((char) unchecked((uint) 83)), unchecked((char) unchecked((uint) 111)), unchecked((char) unchecked((uint) 117)), unchecked((char) unchecked((uint) 114)), unchecked((char) unchecked((uint) 99)), unchecked((char) unchecked((uint) 101)), unchecked((char) unchecked((uint) 32)), unchecked((char) unchecked((uint) 104)), unchecked((char) unchecked((uint) 97)), unchecked((char) unchecked((uint) 115)), unchecked((char) unchecked((uint) 32)), unchecked((char) unchecked((uint) 116)), unchecked((char) unchecked((uint) 119)), unchecked((char) unchecked((uint) 111)), unchecked((char) unchecked((uint) 32)), unchecked((char) unchecked((uint) 115)), unchecked((char) unchecked((uint) 116)), unchecked((char) unchecked((uint) 114)), unchecked((char) unchecked((uint) 101)), unchecked((char) unchecked((uint) 97)), unchecked((char) unchecked((uint) 109)), unchecked((char) unchecked((uint) 115)), unchecked((char) unchecked((uint) 33))}));
    ((global::gnu.xml.aelfred2.XmlParser) _r7_o).error((global::java.lang.String) _r2_o);
    label85:;
    _r0_o = ((global::org.xml.sax.InputSource) _r0_o).getCharacterStream();
    _r2_o = _r12_o;
    _r3_o = _r0_o;
    _r0_o = _r13_o;
    label92:;
    _r4_o = ((global::gnu.xml.aelfred2.XmlParser) _r7_o)._fscratch;
    _r5_o = null;
    ((global::org.xml.sax.InputSource) _r4_o).setCharacterStream((global::java.io.Reader) _r5_o);
    _r4_o = ((global::gnu.xml.aelfred2.XmlParser) _r7_o)._fscratch;
    _r5_o = null;
    ((global::org.xml.sax.InputSource) _r4_o).setByteStream((global::java.io.InputStream) _r5_o);
    _r4_o = ((global::gnu.xml.aelfred2.XmlParser) _r7_o)._fscratch;
    _r5_o = null;
    ((global::org.xml.sax.InputSource) _r4_o).setEncoding((global::java.lang.String) _r5_o);
    ((global::gnu.xml.aelfred2.XmlParser) _r7_o).pushInput((global::java.lang.String) _r9_o);
    _r4.i = 16388;
    _r4_o = new global::org.xmlvm._nArrayAdapter<char>(new char[_r4.i]);
    ((global::gnu.xml.aelfred2.XmlParser) _r7_o)._freadBuffer = (global::org.xmlvm._nArrayAdapter<char>) _r4_o;
    _r4.i = 0;
    ((global::gnu.xml.aelfred2.XmlParser) _r7_o)._freadBufferPos = _r4.i;
    _r4.i = 0;
    ((global::gnu.xml.aelfred2.XmlParser) _r7_o)._freadBufferLength = _r4.i;
    _r4.i = -1;
    ((global::gnu.xml.aelfred2.XmlParser) _r7_o)._freadBufferOverflow = _r4.i;
    _r4_o = null;
    ((global::gnu.xml.aelfred2.XmlParser) _r7_o)._fis = (global::java.io.InputStream) _r4_o;
    _r4.i = 1;
    ((global::gnu.xml.aelfred2.XmlParser) _r7_o)._fline = _r4.i;
    _r4.i = 0;
    ((global::gnu.xml.aelfred2.XmlParser) _r7_o)._fcolumn = _r4.i;
    _r4.i = 0;
    ((global::gnu.xml.aelfred2.XmlParser) _r7_o)._fcurrentByteCount = _r4.i;
    if (_r3_o == null) goto label261;
    _r0.i = 5;
    ((global::gnu.xml.aelfred2.XmlParser) _r7_o)._fsourceType = _r0.i;
    ((global::gnu.xml.aelfred2.XmlParser) _r7_o)._freader = (global::java.io.Reader) _r3_o;
    _r0.i = 1;
    ((global::gnu.xml.aelfred2.XmlParser) _r7_o).tryEncodingDecl(0!=_r0.i);
    goto label63;
    label152:;
    _r0_o = ((global::gnu.xml.aelfred2.XmlParser) _r7_o)._fscratch;
    ((global::org.xml.sax.InputSource) _r0_o).setCharacterStream((global::java.io.Reader) _r11_o);
    _r0_o = ((global::gnu.xml.aelfred2.XmlParser) _r7_o)._fscratch;
    ((global::org.xml.sax.InputSource) _r0_o).setByteStream((global::java.io.InputStream) _r12_o);
    _r0_o = ((global::gnu.xml.aelfred2.XmlParser) _r7_o)._fscratch;
    ((global::org.xml.sax.InputSource) _r0_o).setEncoding((global::java.lang.String) _r13_o);
    _r0_o = ((global::gnu.xml.aelfred2.XmlParser) _r7_o)._fscratch;
    _r1_o = ((global::gnu.xml.aelfred2.XmlParser_2ExternalIdentifiers) _r10_o)._fsystemId;
    _r2_o = ((global::gnu.xml.aelfred2.XmlParser) _r7_o)._fhandler;
    _r2.i = ((global::gnu.xml.aelfred2.SAXDriver) _r2_o)._fstringInterning ? 1 : 0;
    if (_r2.i == 0) goto label190;
    _r2_o = ((global::gnu.xml.aelfred2.XmlParser) _r7_o)._fhandler;
    // Value=[document]
    _r3_o = new global::java.lang.String();
    ((global::java.lang.String)_r3_o).@this(new global::org.xmlvm._nArrayAdapter<char>(new char[] {unchecked((char) unchecked((uint)91)), unchecked((char) unchecked((uint) 100)), unchecked((char) unchecked((uint) 111)), unchecked((char) unchecked((uint) 99)), unchecked((char) unchecked((uint) 117)), unchecked((char) unchecked((uint) 109)), unchecked((char) unchecked((uint) 101)), unchecked((char) unchecked((uint) 110)), unchecked((char) unchecked((uint) 116)), unchecked((char) unchecked((uint) 93))}));
    if (_r3_o != _r9_o) goto label188;
    _r3.i = 1;
    label184:;
    ((global::gnu.xml.aelfred2.SAXDriver) _r2_o).startExternalEntity((global::java.lang.String) _r9_o, (global::java.lang.String) _r1_o, 0!=_r3.i);
    goto label68;
    label188:;
    _r3.i = 0;
    goto label184;
    label190:;
    _r2_o = ((global::gnu.xml.aelfred2.XmlParser) _r7_o)._fhandler;
    // Value=[document]
    _r3_o = new global::java.lang.String();
    ((global::java.lang.String)_r3_o).@this(new global::org.xmlvm._nArrayAdapter<char>(new char[] {unchecked((char) unchecked((uint)91)), unchecked((char) unchecked((uint) 100)), unchecked((char) unchecked((uint) 111)), unchecked((char) unchecked((uint) 99)), unchecked((char) unchecked((uint) 117)), unchecked((char) unchecked((uint) 109)), unchecked((char) unchecked((uint) 101)), unchecked((char) unchecked((uint) 110)), unchecked((char) unchecked((uint) 116)), unchecked((char) unchecked((uint) 93))}));
    _r3.i = ((global::java.lang.String) _r3_o).equals((global::java.lang.Object) _r9_o) ? 1 : 0;
    ((global::gnu.xml.aelfred2.SAXDriver) _r2_o).startExternalEntity((global::java.lang.String) _r9_o, (global::java.lang.String) _r1_o, 0!=_r3.i);
    goto label68;
    label203:;
    _r2_o = ((global::org.xml.sax.InputSource) _r0_o).getByteStream();
    if (_r2_o == null) goto label249;
    _r2_o = ((global::org.xml.sax.InputSource) _r0_o).getEncoding();
    if (_r2_o != null) goto label225;
    _r0_o = ((global::org.xml.sax.InputSource) _r0_o).getByteStream();
    _r3_o = _r11_o;
    _r6_o = _r0_o;
    _r0_o = _r2_o;
    _r2_o = _r6_o;
    goto label92;
    label225:;
    try {
    _r3_o = new global::java.io.InputStreamReader();
    _r4_o = ((global::org.xml.sax.InputSource) _r0_o).getByteStream();
    ((global::java.io.InputStreamReader) _r3_o).@this((global::java.io.InputStream) _r4_o, (global::java.lang.String) _r2_o);
    }
    catch (global::System.Exception e) {
 global::org.xmlvm._nExceptionAdapter ex = e as global::org.xmlvm._nExceptionAdapter ?? new global::org.xmlvm._nExceptionAdapter(e.ToString(), e.ToJavaException());
        global::System.Object _java_exception = ex.getJavaException();
        if (_java_exception is global::java.io.IOException) {
            _ex = ex;
            goto label238;
        }
        throw ex;
    } // end catch
    _r0_o = _r2_o;
    _r2_o = _r12_o;
    goto label92;
    label238:;
    _r3_o = _ex.getJavaException();
    _ex = null;
    _r0_o = ((global::org.xml.sax.InputSource) _r0_o).getByteStream();
    _r3_o = _r11_o;
    _r6_o = _r0_o;
    _r0_o = _r2_o;
    _r2_o = _r6_o;
    goto label92;
    label249:;
    if (_r1_o != null) goto label256;
    // Value=InputSource has no URI!
    _r0_o = new global::java.lang.String();
    ((global::java.lang.String)_r0_o).@this(new global::org.xmlvm._nArrayAdapter<char>(new char[] {unchecked((char) unchecked((uint)73)), unchecked((char) unchecked((uint) 110)), unchecked((char) unchecked((uint) 112)), unchecked((char) unchecked((uint) 117)), unchecked((char) unchecked((uint) 116)), unchecked((char) unchecked((uint) 83)), unchecked((char) unchecked((uint) 111)), unchecked((char) unchecked((uint) 117)), unchecked((char) unchecked((uint) 114)), unchecked((char) unchecked((uint) 99)), unchecked((char) unchecked((uint) 101)), unchecked((char) unchecked((uint) 32)), unchecked((char) unchecked((uint) 104)), unchecked((char) unchecked((uint) 97)), unchecked((char) unchecked((uint) 115)), unchecked((char) unchecked((uint) 32)), unchecked((char) unchecked((uint) 110)), unchecked((char) unchecked((uint) 111)), unchecked((char) unchecked((uint) 32)), unchecked((char) unchecked((uint) 85)), unchecked((char) unchecked((uint) 82)), unchecked((char) unchecked((uint) 73)), unchecked((char) unchecked((uint) 33))}));
    ((global::gnu.xml.aelfred2.XmlParser) _r7_o).error((global::java.lang.String) _r0_o);
    label256:;
    _r0_o = _r13_o;
    _r2_o = _r12_o;
    _r3_o = _r11_o;
    goto label92;
    label261:;
    _r3.i = 3;
    ((global::gnu.xml.aelfred2.XmlParser) _r7_o)._fsourceType = _r3.i;
    if (_r2_o == null) goto label355;
    ((global::gnu.xml.aelfred2.XmlParser) _r7_o)._fis = (global::java.io.InputStream) _r2_o;
    label268:;
    _r1_o = ((global::gnu.xml.aelfred2.XmlParser) _r7_o)._fis;
    _r1.i = ((global::java.io.InputStream) _r1_o).markSupported() ? 1 : 0;
    if (_r1.i != 0) goto label285;
    _r1_o = new global::java.io.BufferedInputStream();
    _r2_o = ((global::gnu.xml.aelfred2.XmlParser) _r7_o)._fis;
    ((global::java.io.BufferedInputStream) _r1_o).@this((global::java.io.InputStream) _r2_o);
    ((global::gnu.xml.aelfred2.XmlParser) _r7_o)._fis = (global::java.io.InputStream) _r1_o;
    label285:;
    if (_r0_o != null) goto label321;
    _r1_o = ((global::gnu.xml.aelfred2.XmlParser) _r7_o)._fexternalEntity;
    if (_r1_o == null) goto label321;
    // Value=file
    _r1_o = new global::java.lang.String();
    ((global::java.lang.String)_r1_o).@this(new global::org.xmlvm._nArrayAdapter<char>(new char[] {unchecked((char) unchecked((uint)102)), unchecked((char) unchecked((uint) 105)), unchecked((char) unchecked((uint) 108)), unchecked((char) unchecked((uint) 101))}));
    _r2_o = ((global::gnu.xml.aelfred2.XmlParser) _r7_o)._fexternalEntity;
    _r2_o = ((global::java.net.URLConnection) _r2_o).getURL();
    _r2_o = ((global::java.net.URL) _r2_o).getProtocol();
    _r1.i = ((global::java.lang.String) _r1_o).equals((global::java.lang.Object) _r2_o) ? 1 : 0;
    if (_r1.i != 0) goto label321;
    _r0_o = ((global::gnu.xml.aelfred2.XmlParser) _r7_o)._fexternalEntity;
    _r0_o = ((global::java.net.URLConnection) _r0_o).getContentType();
    if (_r0_o != null) goto label380;
    _r1.i = -1;
    label318:;
    if (_r1.i >= 0) goto label387;
    _r0_o = null;
    label321:;
    if (_r0_o == null) goto label480;
    _r1.i = 0;
    ((global::gnu.xml.aelfred2.XmlParser) _r7_o)._fencoding = _r1.i;
    ((global::gnu.xml.aelfred2.XmlParser) _r7_o).setupDecoding((global::java.lang.String) _r0_o);
    _r0.i = 1;
    label330:;
    try {
    ((global::gnu.xml.aelfred2.XmlParser) _r7_o).tryEncodingDecl(0!=_r0.i);
    }
    catch (global::System.Exception e) {
 global::org.xmlvm._nExceptionAdapter ex = e as global::org.xmlvm._nExceptionAdapter ?? new global::org.xmlvm._nExceptionAdapter(e.ToString(), e.ToJavaException());
        global::System.Object _java_exception = ex.getJavaException();
        if (_java_exception is global::java.io.UnsupportedEncodingException) {
            _ex = ex;
            goto label335;
        }
        throw ex;
    } // end catch
    goto label63;
    label335:;
    _r0_o = _ex.getJavaException();
    _ex = null;
    _r1_o = ((global::java.io.UnsupportedEncodingException) _r0_o).getMessage();
    try {
    _r2.i = ((global::gnu.xml.aelfred2.XmlParser) _r7_o)._fsourceType;
    _r3.i = 3;
    if (_r2.i == _r3.i) goto label486;
    throw new global::org.xmlvm._nExceptionAdapter((global::System.Object) _r0_o);
    }
    catch (global::System.Exception e) {
 global::org.xmlvm._nExceptionAdapter ex = e as global::org.xmlvm._nExceptionAdapter ?? new global::org.xmlvm._nExceptionAdapter(e.ToString(), e.ToJavaException());
        global::System.Object _java_exception = ex.getJavaException();
        if (_java_exception is global::java.io.IOException) {
            _ex = ex;
            goto label346;
        }
        throw ex;
    } // end catch
    label346:;
    _r0_o = _ex.getJavaException();
    _ex = null;
    // Value=unsupported text encoding
    _r0_o = new global::java.lang.String();
    ((global::java.lang.String)_r0_o).@this(new global::org.xmlvm._nArrayAdapter<char>(new char[] {unchecked((char) unchecked((uint)117)), unchecked((char) unchecked((uint) 110)), unchecked((char) unchecked((uint) 115)), unchecked((char) unchecked((uint) 117)), unchecked((char) unchecked((uint) 112)), unchecked((char) unchecked((uint) 112)), unchecked((char) unchecked((uint) 111)), unchecked((char) unchecked((uint) 114)), unchecked((char) unchecked((uint) 116)), unchecked((char) unchecked((uint) 101)), unchecked((char) unchecked((uint) 100)), unchecked((char) unchecked((uint) 32)), unchecked((char) unchecked((uint) 116)), unchecked((char) unchecked((uint) 101)), unchecked((char) unchecked((uint) 120)), unchecked((char) unchecked((uint) 116)), unchecked((char) unchecked((uint) 32)), unchecked((char) unchecked((uint) 101)), unchecked((char) unchecked((uint) 110)), unchecked((char) unchecked((uint) 99)), unchecked((char) unchecked((uint) 111)), unchecked((char) unchecked((uint) 100)), unchecked((char) unchecked((uint) 105)), unchecked((char) unchecked((uint) 110)), unchecked((char) unchecked((uint) 103))}));
    _r2_o = null;
    ((global::gnu.xml.aelfred2.XmlParser) _r7_o).error((global::java.lang.String) _r0_o, (global::java.lang.String) _r1_o, (global::java.lang.String) _r2_o);
    goto label63;
    label355:;
    _r2_o = new global::java.net.URL();
    ((global::java.net.URL) _r2_o).@this((global::java.lang.String) _r1_o);
    _r1_o = ((global::java.net.URL) _r2_o).openConnection();
    ((global::gnu.xml.aelfred2.XmlParser) _r7_o)._fexternalEntity = (global::java.net.URLConnection) _r1_o;
    _r1_o = ((global::gnu.xml.aelfred2.XmlParser) _r7_o)._fexternalEntity;
    ((global::java.net.URLConnection) _r1_o).connect();
    _r1_o = ((global::gnu.xml.aelfred2.XmlParser) _r7_o)._fexternalEntity;
    _r1_o = ((global::java.net.URLConnection) _r1_o).getInputStream();
    ((global::gnu.xml.aelfred2.XmlParser) _r7_o)._fis = (global::java.io.InputStream) _r1_o;
    goto label268;
    label380:;
    // Value=charset
    _r1_o = new global::java.lang.String();
    ((global::java.lang.String)_r1_o).@this(new global::org.xmlvm._nArrayAdapter<char>(new char[] {unchecked((char) unchecked((uint)99)), unchecked((char) unchecked((uint) 104)), unchecked((char) unchecked((uint) 97)), unchecked((char) unchecked((uint) 114)), unchecked((char) unchecked((uint) 115)), unchecked((char) unchecked((uint) 101)), unchecked((char) unchecked((uint) 116))}));
    _r1.i = ((global::java.lang.String) _r0_o).indexOf((global::java.lang.String) _r1_o);
    goto label318;
    label387:;
    _r1.i = 59;
    _r1.i = ((global::java.lang.String) _r0_o).indexOf((int) _r1.i);
    if (_r1.i <= 0) goto label400;
    _r2.i = 0;
    _r0_o = ((global::java.lang.String) _r0_o).substring((int) _r2.i, (int) _r1.i);
    label400:;
    _r2.i = 61;
    _r1.i = _r1.i + 7;
    _r1.i = ((global::java.lang.String) _r0_o).indexOf((int) _r2.i, (int) _r1.i);
    if (_r1.i <= 0) goto label457;
    _r1.i = _r1.i + 1;
    _r0_o = ((global::java.lang.String) _r0_o).substring((int) _r1.i);
    _r1.i = 40;
    _r1.i = ((global::java.lang.String) _r0_o).indexOf((int) _r1.i);
    if (_r1.i <= 0) goto label429;
    _r2.i = 0;
    _r0_o = ((global::java.lang.String) _r0_o).substring((int) _r2.i, (int) _r1.i);
    label429:;
    _r1.i = 34;
    _r1.i = ((global::java.lang.String) _r0_o).indexOf((int) _r1.i);
    if (_r1.i <= 0) goto label451;
    _r2.i = _r1.i + 1;
    _r3.i = 34;
    _r1.i = _r1.i + 2;
    _r1.i = ((global::java.lang.String) _r0_o).indexOf((int) _r3.i, (int) _r1.i);
    _r0_o = ((global::java.lang.String) _r0_o).substring((int) _r2.i, (int) _r1.i);
    label451:;
    _r0_o = ((global::java.lang.String) _r0_o).trim();
    goto label321;
    label457:;
    _r1_o = ((global::gnu.xml.aelfred2.XmlParser) _r7_o)._fhandler;
    _r2_o = new global::java.lang.StringBuilder();
    // Value=ignoring illegal MIME attribute: 
    _r3_o = new global::java.lang.String();
    ((global::java.lang.String)_r3_o).@this(new global::org.xmlvm._nArrayAdapter<char>(new char[] {unchecked((char) unchecked((uint)105)), unchecked((char) unchecked((uint) 103)), unchecked((char) unchecked((uint) 110)), unchecked((char) unchecked((uint) 111)), unchecked((char) unchecked((uint) 114)), unchecked((char) unchecked((uint) 105)), unchecked((char) unchecked((uint) 110)), unchecked((char) unchecked((uint) 103)), unchecked((char) unchecked((uint) 32)), unchecked((char) unchecked((uint) 105)), unchecked((char) unchecked((uint) 108)), unchecked((char) unchecked((uint) 108)), unchecked((char) unchecked((uint) 101)), unchecked((char) unchecked((uint) 103)), unchecked((char) unchecked((uint) 97)), unchecked((char) unchecked((uint) 108)), unchecked((char) unchecked((uint) 32)), unchecked((char) unchecked((uint) 77)), unchecked((char) unchecked((uint) 73)), unchecked((char) unchecked((uint) 77)), unchecked((char) unchecked((uint) 69)), unchecked((char) unchecked((uint) 32)), unchecked((char) unchecked((uint) 97)), unchecked((char) unchecked((uint) 116)), unchecked((char) unchecked((uint) 116)), unchecked((char) unchecked((uint) 114)), unchecked((char) unchecked((uint) 105)), unchecked((char) unchecked((uint) 98)), unchecked((char) unchecked((uint) 117)), unchecked((char) unchecked((uint) 116)), unchecked((char) unchecked((uint) 101)), unchecked((char) unchecked((uint) 58)), unchecked((char) unchecked((uint) 32))}));
    ((global::java.lang.StringBuilder) _r2_o).@this((global::java.lang.String) _r3_o);
    _r0_o = ((global::java.lang.StringBuilder) _r2_o).append((global::java.lang.String) _r0_o);
    _r0_o = ((global::java.lang.StringBuilder) _r0_o).toString();
    ((global::gnu.xml.aelfred2.SAXDriver) _r1_o).warn((global::java.lang.String) _r0_o);
    _r0_o = null;
    goto label321;
    label480:;
    ((global::gnu.xml.aelfred2.XmlParser) _r7_o).detectEncoding();
    _r0.i = 0;
    goto label330;
    label486:;
    try {
    _r0_o = ((global::gnu.xml.aelfred2.XmlParser) _r7_o)._fis;
    ((global::java.io.InputStream) _r0_o).reset();
    _r0.i = 0;
    ((global::gnu.xml.aelfred2.XmlParser) _r7_o)._freadBufferPos = _r0.i;
    _r0.i = 0;
    ((global::gnu.xml.aelfred2.XmlParser) _r7_o)._freadBufferLength = _r0.i;
    _r0.i = -1;
    ((global::gnu.xml.aelfred2.XmlParser) _r7_o)._freadBufferOverflow = _r0.i;
    _r0.i = 1;
    ((global::gnu.xml.aelfred2.XmlParser) _r7_o)._fline = _r0.i;
    _r0.i = 0;
    ((global::gnu.xml.aelfred2.XmlParser) _r7_o)._fcolumn = _r0.i;
    ((global::gnu.xml.aelfred2.XmlParser) _r7_o)._fcurrentByteCount = _r0.i;
    _r0.i = 5;
    ((global::gnu.xml.aelfred2.XmlParser) _r7_o)._fsourceType = _r0.i;
    _r0_o = new global::java.io.InputStreamReader();
    _r2_o = ((global::gnu.xml.aelfred2.XmlParser) _r7_o)._fis;
    ((global::java.io.InputStreamReader) _r0_o).@this((global::java.io.InputStream) _r2_o, (global::java.lang.String) _r1_o);
    ((global::gnu.xml.aelfred2.XmlParser) _r7_o)._freader = (global::java.io.Reader) _r0_o;
    _r0_o = null;
    ((global::gnu.xml.aelfred2.XmlParser) _r7_o)._fis = (global::java.io.InputStream) _r0_o;
    _r0.i = 1;
    ((global::gnu.xml.aelfred2.XmlParser) _r7_o).tryEncodingDecl(0!=_r0.i);
    }
    catch (global::System.Exception e) {
 global::org.xmlvm._nExceptionAdapter ex = e as global::org.xmlvm._nExceptionAdapter ?? new global::org.xmlvm._nExceptionAdapter(e.ToString(), e.ToJavaException());
        global::System.Object _java_exception = ex.getJavaException();
        if (_java_exception is global::java.io.IOException) {
            _ex = ex;
            goto label346;
        }
        throw ex;
    } // end catch
    goto label63;
//XMLVM_END_WRAPPER[gnu.xml.aelfred2.XmlParser: void pushURL(boolean, java.lang.String, gnu.xml.aelfred2.XmlParser$ExternalIdentifiers, java.io.Reader, java.io.InputStream, java.lang.String, boolean)]
}
コード例 #3
0
ファイル: Properties.cs プロジェクト: shannah/CN1WindowsPort
public virtual void load(global::java.io.InputStream n1){
//XMLVM_BEGIN_WRAPPER[java.util.Properties: void load(java.io.InputStream)]
    global::System.Object _r0_o = null;
    global::org.xmlvm._nElement _r1;
    global::System.Object _r1_o = null;
    global::System.Object _r2_o = null;
    global::System.Object _r3_o = null;
    global::System.Object _r4_o = null;
    global::org.xmlvm._nExceptionAdapter _ex = null;
    _r3_o = this;
    _r4_o = n1;
    global::System.Threading.Monitor.Enter(_r3_o);
    if (_r4_o != null) goto label12;
    try {
    _r0_o = new global::java.lang.NullPointerException();
    ((global::java.lang.NullPointerException) _r0_o).@this();
    throw new global::org.xmlvm._nExceptionAdapter((global::java.lang.NullPointerException) _r0_o);
    }
    catch (global::System.Exception e) {
 global::org.xmlvm._nExceptionAdapter ex = e as global::org.xmlvm._nExceptionAdapter ?? new global::org.xmlvm._nExceptionAdapter(e.ToString(), e.ToJavaException());
        global::System.Object _java_exception = ex.getJavaException();
        if (_java_exception is global::java.lang.Object) {
            _ex = ex;
            goto label9;
        }
        throw ex;
    } // end catch
    label9:;
    _r0_o = _ex.getJavaException();
    _ex = null;
    global::System.Threading.Monitor.Exit(_r3_o);
    throw new global::org.xmlvm._nExceptionAdapter((global::java.lang.Throwable) _r0_o);
    label12:;
    try {
    _r0_o = new global::java.io.BufferedInputStream();
    ((global::java.io.BufferedInputStream) _r0_o).@this((global::java.io.InputStream) _r4_o);
    _r1.i = 2147483647;
    ((global::java.io.BufferedInputStream) _r0_o).mark((int) _r1.i);
    _r1.i = ((global::java.util.Properties) _r3_o).isEbcdic((global::java.io.BufferedInputStream) _r0_o) ? 1 : 0;
    ((global::java.io.BufferedInputStream) _r0_o).reset();
    if (_r1.i != 0) goto label44;
    _r1_o = new global::java.io.InputStreamReader();
    // Value=ISO8859-1
    _r2_o = new global::java.lang.String();
    ((global::java.lang.String)_r2_o).@this(new global::org.xmlvm._nArrayAdapter<char>(new char[] {unchecked((char) unchecked((uint)73)), unchecked((char) unchecked((uint) 83)), unchecked((char) unchecked((uint) 79)), unchecked((char) unchecked((uint) 56)), unchecked((char) unchecked((uint) 56)), unchecked((char) unchecked((uint) 53)), unchecked((char) unchecked((uint) 57)), unchecked((char) unchecked((uint) 45)), unchecked((char) unchecked((uint) 49))}));
    ((global::java.io.InputStreamReader) _r1_o).@this((global::java.io.InputStream) _r0_o, (global::java.lang.String) _r2_o);
    ((global::java.util.Properties) _r3_o).loadImpl((global::java.io.Reader) _r1_o);
    }
    catch (global::System.Exception e) {
 global::org.xmlvm._nExceptionAdapter ex = e as global::org.xmlvm._nExceptionAdapter ?? new global::org.xmlvm._nExceptionAdapter(e.ToString(), e.ToJavaException());
        global::System.Object _java_exception = ex.getJavaException();
        if (_java_exception is global::java.lang.Object) {
            _ex = ex;
            goto label9;
        }
        throw ex;
    } // end catch
    label42:;
    global::System.Threading.Monitor.Exit(_r3_o);
    return;
    label44:;
    try {
    _r1_o = new global::java.io.InputStreamReader();
    ((global::java.io.InputStreamReader) _r1_o).@this((global::java.io.InputStream) _r0_o);
    ((global::java.util.Properties) _r3_o).loadImpl((global::java.io.Reader) _r1_o);
    }
    catch (global::System.Exception e) {
 global::org.xmlvm._nExceptionAdapter ex = e as global::org.xmlvm._nExceptionAdapter ?? new global::org.xmlvm._nExceptionAdapter(e.ToString(), e.ToJavaException());
        global::System.Object _java_exception = ex.getJavaException();
        if (_java_exception is global::java.lang.Object) {
            _ex = ex;
            goto label9;
        }
        throw ex;
    } // end catch
    goto label42;
//XMLVM_END_WRAPPER[java.util.Properties: void load(java.io.InputStream)]
}
コード例 #4
0
public void @this(global::java.io.InputStream n1, global::java.io.Reader n2, global::java.lang.String n3, global::java.lang.String n4, global::java.lang.String n5, global::java.lang.String n6, bool n7, bool n8){
//XMLVM_BEGIN_WRAPPER[gnu.xml.stream.XMLParser$Input: void <init>(java.io.InputStream, java.io.Reader, java.lang.String, java.lang.String, java.lang.String, java.lang.String, boolean, boolean)]
    global::System.Object _r0_o = null;
    global::org.xmlvm._nElement _r1;
    global::System.Object _r1_o = null;
    global::System.Object _r2_o = null;
    global::System.Object _r3_o = null;
    global::System.Object _r4_o = null;
    global::System.Object _r5_o = null;
    global::System.Object _r6_o = null;
    global::System.Object _r7_o = null;
    global::System.Object _r8_o = null;
    global::System.Object _r9_o = null;
    global::org.xmlvm._nElement _r10;
    global::org.xmlvm._nElement _r11;
    _r3_o = this;
    _r4_o = n1;
    _r5_o = n2;
    _r6_o = n3;
    _r7_o = n4;
    _r8_o = n5;
    _r9_o = n6;
    _r10.i = n7 ? 1 : 0;
    _r11.i = n8 ? 1 : 0;
    ((global::java.lang.Object) _r3_o).@this();
    _r1.i = 1;
    ((global::gnu.xml.stream.XMLParser_2Input) _r3_o)._fline = _r1.i;
    if (_r9_o != null) goto label10;
    // Value=UTF-8
    _r9_o = new global::java.lang.String();
    ((global::java.lang.String)_r9_o).@this(new global::org.xmlvm._nArrayAdapter<char>(new char[] {unchecked((char) unchecked((uint)85)), unchecked((char) unchecked((uint) 84)), unchecked((char) unchecked((uint) 70)), unchecked((char) unchecked((uint) 45)), unchecked((char) unchecked((uint) 56))}));
    label10:;
    ((global::gnu.xml.stream.XMLParser_2Input) _r3_o)._finputEncoding = (global::java.lang.String) _r9_o;
    ((global::gnu.xml.stream.XMLParser_2Input) _r3_o)._fpublicId = (global::java.lang.String) _r6_o;
    ((global::gnu.xml.stream.XMLParser_2Input) _r3_o)._fsystemId = (global::java.lang.String) _r7_o;
    ((global::gnu.xml.stream.XMLParser_2Input) _r3_o)._fname = (global::java.lang.String) _r8_o;
    ((global::gnu.xml.stream.XMLParser_2Input) _r3_o)._freport = 0!=_r10.i;
    ((global::gnu.xml.stream.XMLParser_2Input) _r3_o)._fnormalize = 0!=_r11.i;
    if (_r4_o == null) goto label54;
    if (_r5_o == null) goto label34;
    _r1_o = new global::java.lang.IllegalStateException();
    // Value=both byte and char streams specified
    _r2_o = new global::java.lang.String();
    ((global::java.lang.String)_r2_o).@this(new global::org.xmlvm._nArrayAdapter<char>(new char[] {unchecked((char) unchecked((uint)98)), unchecked((char) unchecked((uint) 111)), unchecked((char) unchecked((uint) 116)), unchecked((char) unchecked((uint) 104)), unchecked((char) unchecked((uint) 32)), unchecked((char) unchecked((uint) 98)), unchecked((char) unchecked((uint) 121)), unchecked((char) unchecked((uint) 116)), unchecked((char) unchecked((uint) 101)), unchecked((char) unchecked((uint) 32)), unchecked((char) unchecked((uint) 97)), unchecked((char) unchecked((uint) 110)), unchecked((char) unchecked((uint) 100)), unchecked((char) unchecked((uint) 32)), unchecked((char) unchecked((uint) 99)), unchecked((char) unchecked((uint) 104)), unchecked((char) unchecked((uint) 97)), unchecked((char) unchecked((uint) 114)), unchecked((char) unchecked((uint) 32)), unchecked((char) unchecked((uint) 115)), unchecked((char) unchecked((uint) 116)), unchecked((char) unchecked((uint) 114)), unchecked((char) unchecked((uint) 101)), unchecked((char) unchecked((uint) 97)), unchecked((char) unchecked((uint) 109)), unchecked((char) unchecked((uint) 115)), unchecked((char) unchecked((uint) 32)), unchecked((char) unchecked((uint) 115)), unchecked((char) unchecked((uint) 112)), unchecked((char) unchecked((uint) 101)), unchecked((char) unchecked((uint) 99)), unchecked((char) unchecked((uint) 105)), unchecked((char) unchecked((uint) 102)), unchecked((char) unchecked((uint) 105)), unchecked((char) unchecked((uint) 101)), unchecked((char) unchecked((uint) 100))}));
    ((global::java.lang.IllegalStateException) _r1_o).@this((global::java.lang.String) _r2_o);
    throw new global::org.xmlvm._nExceptionAdapter((global::java.lang.IllegalStateException) _r1_o);
    label34:;
    if (_r11.i == 0) goto label42;
    _r0_o = new global::gnu.java.net.CRLFInputStream();
    ((global::gnu.java.net.CRLFInputStream) _r0_o).@this((global::java.io.InputStream) _r4_o);
    _r4_o = _r0_o;
    label42:;
    _r0_o = new global::java.io.BufferedInputStream();
    ((global::java.io.BufferedInputStream) _r0_o).@this((global::java.io.InputStream) _r4_o);
    ((global::gnu.xml.stream.XMLParser_2Input) _r3_o)._fin = (global::java.io.InputStream) _r0_o;
    _r4_o = _r0_o;
    label50:;
    _r1.i = 0;
    ((global::gnu.xml.stream.XMLParser_2Input) _r3_o)._finitialized = 0!=_r1.i;
    return;
    label54:;
    if (_r11.i == 0) goto label73;
    _r1_o = new global::gnu.xml.stream.CRLFReader();
    ((global::gnu.xml.stream.CRLFReader) _r1_o).@this((global::java.io.Reader) _r5_o);
    label61:;
    ((global::gnu.xml.stream.XMLParser_2Input) _r3_o)._freader = (global::java.io.Reader) _r1_o;
    _r1_o = new global::gnu.xml.stream.UnicodeReader();
    _r2_o = ((global::gnu.xml.stream.XMLParser_2Input) _r3_o)._freader;
    ((global::gnu.xml.stream.UnicodeReader) _r1_o).@this((global::java.io.Reader) _r2_o);
    ((global::gnu.xml.stream.XMLParser_2Input) _r3_o)._funicodeReader = (global::gnu.xml.stream.UnicodeReader) _r1_o;
    goto label50;
    label73:;
    _r1_o = _r5_o;
    goto label61;
//XMLVM_END_WRAPPER[gnu.xml.stream.XMLParser$Input: void <init>(java.io.InputStream, java.io.Reader, java.lang.String, java.lang.String, java.lang.String, java.lang.String, boolean, boolean)]
}