Beispiel #1
0
public override void readResponse(global::java.io.InputStream n1){
//XMLVM_BEGIN_WRAPPER[com.codename1.io.services.RSSService: void readResponse(java.io.InputStream)]
    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::org.xmlvm._nElement _r5;
    global::System.Object _r5_o = null;
    global::org.xmlvm._nElement _r6;
    global::System.Object _r6_o = null;
    global::org.xmlvm._nElement _r7;
    global::System.Object _r7_o = null;
    global::org.xmlvm._nElement _r8;
    global::System.Object _r8_o = null;
    global::org.xmlvm._nElement _r9;
    global::System.Object _r9_o = null;
    global::org.xmlvm._nElement _r10;
    global::System.Object _r10_o = null;
    global::org.xmlvm._nElement _r11;
    global::System.Object _r11_o = null;
    global::org.xmlvm._nElement _r12;
    global::System.Object _r12_o = null;
    global::org.xmlvm._nElement _r13;
    global::System.Object _r13_o = null;
    global::org.xmlvm._nElement _r14;
    global::System.Object _r14_o = null;
    global::org.xmlvm._nElement _r15;
    global::System.Object _r15_o = null;
    global::org.xmlvm._nElement _r16;
    global::System.Object _r16_o = null;
    global::org.xmlvm._nElement _r17;
    global::System.Object _r17_o = null;
    global::org.xmlvm._nElement _r18;
    global::System.Object _r18_o = null;
    global::org.xmlvm._nElement _r19;
    global::System.Object _r19_o = null;
    global::org.xmlvm._nElement _r20;
    global::System.Object _r20_o = null;
    global::org.xmlvm._nElement _r21;
    global::System.Object _r21_o = null;
    global::org.xmlvm._nElement _r22;
    global::System.Object _r22_o = null;
    global::org.xmlvm._nElement _r23;
    global::System.Object _r23_o = null;
    global::org.xmlvm._nElement _r24;
    global::System.Object _r24_o = null;
    global::org.xmlvm._nElement _r25;
    global::System.Object _r25_o = null;
    global::org.xmlvm._nExceptionAdapter _ex = null;
    _r24_o = this;
    _r25_o = n1;
    _r21_o = new global::java.util.Vector();
    ((global::java.util.Vector) _r21_o).@this();
    _r0_o = _r21_o;
    _r1_o = _r24_o;
    ((global::com.codename1.io.services.RSSService) _r1_o)._fresults = (global::java.util.Vector) _r0_o;
    _r13_o = new global::com.codename1.io.services.RSSService_21();
    _r0_o = _r13_o;
    _r1_o = _r24_o;
    ((global::com.codename1.io.services.RSSService_21) _r0_o).@this((global::com.codename1.io.services.RSSService) _r1_o);
    _r0_o = _r13_o;
    _r1_o = _r24_o;
    ((global::com.codename1.xml.XMLParser) _r0_o).setParserCallback((global::com.codename1.xml.ParserCallback) _r1_o);
    _r21.i = 10;
    _r0_o = _r25_o;
    _r1.i = _r21.i;
    ((global::java.io.InputStream) _r0_o).mark((int) _r1.i);
    label34:;
    _r21.i = ((global::java.io.InputStream) _r25_o).read();
    _r22.i = 60;
    _r0.i = _r21.i;
    _r1.i = _r22.i;
    if (_r0.i != _r1.i) goto label34;
    _r15.i = ((global::java.io.InputStream) _r25_o).read();
    // Value=UTF-8
    _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)85)), unchecked((char) unchecked((uint) 84)), unchecked((char) unchecked((uint) 70)), unchecked((char) unchecked((uint) 45)), unchecked((char) unchecked((uint) 56))}));
    _r21.i = 63;
    _r0.i = _r15.i;
    _r1.i = _r21.i;
    if (_r0.i != _r1.i) goto label384;
    _r4_o = new global::java.lang.StringBuilder();
    ((global::java.lang.StringBuilder) _r4_o).@this();
    _r15.i = ((global::java.io.InputStream) _r25_o).read();
    label68:;
    _r21.i = 62;
    _r0.i = _r15.i;
    _r1.i = _r21.i;
    if (_r0.i == _r1.i) goto label90;
    _r0.i = _r15.i;
    _r0.i = _r0.i & 0xffff;
    _r21.i = _r0.i;
    _r0_o = _r4_o;
    _r1.i = _r21.i;
    ((global::java.lang.StringBuilder) _r0_o).append((char) _r1.i);
    _r15.i = ((global::java.io.InputStream) _r25_o).read();
    goto label68;
    label90:;
    _r19_o = ((global::java.lang.StringBuilder) _r4_o).toString();
    // Value=encoding=\042
    _r21_o = new global::java.lang.String();
    ((global::java.lang.String)_r21_o).@this(new global::org.xmlvm._nArrayAdapter<char>(new char[] {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)), unchecked((char) unchecked((uint) 61)), unchecked((char) unchecked((uint) 34))}));
    _r0_o = _r19_o;
    _r1_o = _r21_o;
    _r21.i = ((global::java.lang.String) _r0_o).indexOf((global::java.lang.String) _r1_o);
    _r11.i = _r21.i + 10;
    _r21.i = -1;
    _r0.i = _r11.i;
    _r1.i = _r21.i;
    if (_r0.i <= _r1.i) goto label148;
    // Value=\042
    _r21_o = new global::java.lang.String();
    ((global::java.lang.String)_r21_o).@this(new global::org.xmlvm._nArrayAdapter<char>(new char[] {unchecked((char) unchecked((uint)34))}));
    _r0_o = _r19_o;
    _r1_o = _r21_o;
    _r2.i = _r11.i;
    _r21.i = ((global::java.lang.String) _r0_o).indexOf((global::java.lang.String) _r1_o, (int) _r2.i);
    // Value='
    _r22_o = new global::java.lang.String();
    ((global::java.lang.String)_r22_o).@this(new global::org.xmlvm._nArrayAdapter<char>(new char[] {unchecked((char) unchecked((uint)39))}));
    _r0_o = _r19_o;
    _r1_o = _r22_o;
    _r2.i = _r11.i;
    _r22.i = ((global::java.lang.String) _r0_o).indexOf((global::java.lang.String) _r1_o, (int) _r2.i);
    _r21.i = global::java.lang.Math.max((int) _r21.i, (int) _r22.i);
    _r0_o = _r19_o;
    _r1.i = _r11.i;
    _r2.i = _r21.i;
    _r3_o = ((global::java.lang.String) _r0_o).substring((int) _r1.i, (int) _r2.i);
    label148:;
    _r16_o = ((global::com.codename1.io.services.RSSService) _r24_o).getResponseContentType();
    if (_r16_o == null) goto label192;
    // Value=charset=
    _r21_o = new global::java.lang.String();
    ((global::java.lang.String)_r21_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)), unchecked((char) unchecked((uint) 61))}));
    _r0_o = _r16_o;
    _r1_o = _r21_o;
    _r21.i = ((global::java.lang.String) _r0_o).indexOf((global::java.lang.String) _r1_o);
    _r22.i = -1;
    _r0.i = _r21.i;
    _r1.i = _r22.i;
    if (_r0.i <= _r1.i) goto label192;
    // Value=charset=
    _r21_o = new global::java.lang.String();
    ((global::java.lang.String)_r21_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)), unchecked((char) unchecked((uint) 61))}));
    _r0_o = _r16_o;
    _r1_o = _r21_o;
    _r21.i = ((global::java.lang.String) _r0_o).indexOf((global::java.lang.String) _r1_o);
    _r21.i = _r21.i + 8;
    _r0_o = _r16_o;
    _r1.i = _r21.i;
    _r3_o = ((global::java.lang.String) _r0_o).substring((int) _r1.i);
    label192:;
    _r21.i = 59;
    try {
    _r0_o = _r3_o;
    _r1.i = _r21.i;
    _r14.i = ((global::java.lang.String) _r0_o).indexOf((int) _r1.i);
    if (_r14.i <= 0) goto label213;
    _r21.i = 0;
    _r0_o = _r3_o;
    _r1.i = _r21.i;
    _r2.i = _r14.i;
    _r3_o = ((global::java.lang.String) _r0_o).substring((int) _r1.i, (int) _r2.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::com.codename1.io.services.RSSService_21FinishParsing) {
            _ex = ex;
            goto label389;
        }
        throw ex;
    } // end catch
    label213:;
    try {
    _r21_o = new global::java.io.InputStreamReader();
    _r0_o = _r21_o;
    _r1_o = _r25_o;
    _r2_o = _r3_o;
    ((global::java.io.InputStreamReader) _r0_o).@this((global::java.io.InputStream) _r1_o, (global::java.lang.String) _r2_o);
    _r0_o = _r13_o;
    _r1_o = _r21_o;
    ((global::com.codename1.xml.XMLParser) _r0_o).eventParser((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::com.codename1.io.services.RSSService_21FinishParsing) {
            _ex = ex;
            goto label389;
        }
        throw ex;
    } // end catch
    label229:;
    _r21.i = ((global::com.codename1.io.services.RSSService) _r24_o).isCreatePlainTextDetails() ? 1 : 0;
    if (_r21.i == 0) goto label420;
    _r0_o = _r24_o;
    _r0_o = ((global::com.codename1.io.services.RSSService) _r0_o)._fresults;
    _r21_o = _r0_o;
    _r6.i = ((global::java.util.Vector) _r21_o).size();
    _r12.i = 0;
    label246:;
    if (_r12.i >= _r6.i) goto label420;
    _r0_o = _r24_o;
    _r0_o = ((global::com.codename1.io.services.RSSService) _r0_o)._fresults;
    _r21_o = _r0_o;
    _r0_o = _r21_o;
    _r1.i = _r12.i;
    _r8_o = ((global::java.util.Vector) _r0_o).elementAt((int) _r1.i);
    _r8_o = _r8_o;
    // Value=description
    _r21_o = new global::java.lang.String();
    ((global::java.lang.String)_r21_o).@this(new global::org.xmlvm._nArrayAdapter<char>(new char[] {unchecked((char) unchecked((uint)100)), unchecked((char) unchecked((uint) 101)), unchecked((char) unchecked((uint) 115)), unchecked((char) unchecked((uint) 99)), unchecked((char) unchecked((uint) 114)), unchecked((char) unchecked((uint) 105)), unchecked((char) unchecked((uint) 112)), unchecked((char) unchecked((uint) 116)), unchecked((char) unchecked((uint) 105)), unchecked((char) unchecked((uint) 111)), unchecked((char) unchecked((uint) 110))}));
    _r0_o = _r8_o;
    _r1_o = _r21_o;
    _r18_o = ((global::java.util.Hashtable) _r0_o).get((global::java.lang.Object) _r1_o);
    _r18_o = _r18_o;
    if (_r18_o == null) goto label416;
    // Value=details
    _r21_o = new global::java.lang.String();
    ((global::java.lang.String)_r21_o).@this(new global::org.xmlvm._nArrayAdapter<char>(new char[] {unchecked((char) unchecked((uint)100)), unchecked((char) unchecked((uint) 101)), unchecked((char) unchecked((uint) 116)), unchecked((char) unchecked((uint) 97)), unchecked((char) unchecked((uint) 105)), unchecked((char) unchecked((uint) 108)), unchecked((char) unchecked((uint) 115))}));
    _r0_o = _r8_o;
    _r1_o = _r21_o;
    _r21.i = ((global::java.util.Hashtable) _r0_o).containsKey((global::java.lang.Object) _r1_o) ? 1 : 0;
    if (_r21.i != 0) goto label416;
    _r20_o = new global::com.codename1.xml.XMLParser();
    ((global::com.codename1.xml.XMLParser) _r20_o).@this();
    _r21_o = new global::com.codename1.io.CharArrayReader();
    _r22_o = new global::java.lang.StringBuilder();
    ((global::java.lang.StringBuilder) _r22_o).@this();
    // Value=<xml>
    _r23_o = new global::java.lang.String();
    ((global::java.lang.String)_r23_o).@this(new global::org.xmlvm._nArrayAdapter<char>(new char[] {unchecked((char) unchecked((uint)60)), unchecked((char) unchecked((uint) 120)), unchecked((char) unchecked((uint) 109)), unchecked((char) unchecked((uint) 108)), unchecked((char) unchecked((uint) 62))}));
    _r22_o = ((global::java.lang.StringBuilder) _r22_o).append((global::java.lang.String) _r23_o);
    _r0_o = _r22_o;
    _r1_o = _r18_o;
    _r22_o = ((global::java.lang.StringBuilder) _r0_o).append((global::java.lang.String) _r1_o);
    // Value=</xml>
    _r23_o = new global::java.lang.String();
    ((global::java.lang.String)_r23_o).@this(new global::org.xmlvm._nArrayAdapter<char>(new char[] {unchecked((char) unchecked((uint)60)), unchecked((char) unchecked((uint) 47)), unchecked((char) unchecked((uint) 120)), unchecked((char) unchecked((uint) 109)), unchecked((char) unchecked((uint) 108)), unchecked((char) unchecked((uint) 62))}));
    _r22_o = ((global::java.lang.StringBuilder) _r22_o).append((global::java.lang.String) _r23_o);
    _r22_o = ((global::java.lang.StringBuilder) _r22_o).toString();
    _r22_o = ((global::java.lang.String) _r22_o).toCharArray();
    ((global::com.codename1.io.CharArrayReader) _r21_o).@this((global::org.xmlvm._nArrayAdapter<char>) _r22_o);
    _r5_o = ((global::com.codename1.xml.XMLParser) _r20_o).parse((global::java.io.Reader) _r21_o);
    _r21_o = null;
    _r22.i = 0;
    _r0_o = _r5_o;
    _r1_o = _r21_o;
    _r2.i = _r22.i;
    _r17_o = ((global::com.codename1.xml.Element) _r0_o).getTextDescendants((global::java.lang.String) _r1_o, 0!=_r2.i);
    _r7_o = new global::java.lang.StringBuilder();
    ((global::java.lang.StringBuilder) _r7_o).@this();
    _r9.i = 0;
    label353:;
    _r21.i = ((global::java.util.Vector) _r17_o).size();
    _r0.i = _r9.i;
    _r1.i = _r21.i;
    if (_r0.i >= _r1.i) goto label402;
    _r0_o = _r17_o;
    _r1.i = _r9.i;
    _r25_o = ((global::java.util.Vector) _r0_o).elementAt((int) _r1.i);
    _r25_o = _r25_o;
    _r21_o = ((global::com.codename1.xml.Element) _r25_o).getText();
    _r0_o = _r7_o;
    _r1_o = _r21_o;
    ((global::java.lang.StringBuilder) _r0_o).append((global::java.lang.String) _r1_o);
    _r9.i = _r9.i + 1;
    goto label353;
    label384:;
    ((global::java.io.InputStream) _r25_o).reset();
    goto label148;
    label389:;
    _r21_o = _ex.getJavaException();
    _ex = null;
    _r10_o = _r21_o;
    _r21.i = 1;
    _r0.i = _r21.i;
    _r1_o = _r24_o;
    ((global::com.codename1.io.services.RSSService) _r1_o)._fhasMore = 0!=_r0.i;
    goto label229;
    label402:;
    // Value=details
    _r21_o = new global::java.lang.String();
    ((global::java.lang.String)_r21_o).@this(new global::org.xmlvm._nArrayAdapter<char>(new char[] {unchecked((char) unchecked((uint)100)), unchecked((char) unchecked((uint) 101)), unchecked((char) unchecked((uint) 116)), unchecked((char) unchecked((uint) 97)), unchecked((char) unchecked((uint) 105)), unchecked((char) unchecked((uint) 108)), unchecked((char) unchecked((uint) 115))}));
    _r22_o = ((global::java.lang.StringBuilder) _r7_o).toString();
    _r0_o = _r8_o;
    _r1_o = _r21_o;
    _r2_o = _r22_o;
    ((global::java.util.Hashtable) _r0_o).put((global::java.lang.Object) _r1_o, (global::java.lang.Object) _r2_o);
    label416:;
    _r12.i = _r12.i + 1;
    goto label246;
    label420:;
    _r21_o = new global::com.codename1.io.NetworkEvent();
    _r0_o = _r24_o;
    _r0_o = ((global::com.codename1.io.services.RSSService) _r0_o)._fresults;
    _r22_o = _r0_o;
    _r0_o = _r21_o;
    _r1_o = _r24_o;
    _r2_o = _r22_o;
    ((global::com.codename1.io.NetworkEvent) _r0_o).@this((global::com.codename1.io.ConnectionRequest) _r1_o, (global::java.lang.Object) _r2_o);
    _r0_o = _r24_o;
    _r1_o = _r21_o;
    ((global::com.codename1.io.services.RSSService) _r0_o).fireResponseListener((global::com.codename1.ui.events.ActionEvent) _r1_o);
    return;
//XMLVM_END_WRAPPER[com.codename1.io.services.RSSService: void readResponse(java.io.InputStream)]
}
Beispiel #2
0
public void @this(global::java.io.InputStream n1){
//XMLVM_BEGIN_WRAPPER[com.codename1.processing.XMLContent: void <init>(java.io.InputStream)]
    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._nExceptionAdapter _ex = null;
    _r2_o = this;
    _r3_o = n1;
    _r0_o = new global::com.codename1.xml.XMLParser();
    ((global::com.codename1.xml.XMLParser) _r0_o).@this();
    _r1_o = new global::java.io.InputStreamReader();
    ((global::java.io.InputStreamReader) _r1_o).@this((global::java.io.InputStream) _r3_o);
    _r0_o = ((global::com.codename1.xml.XMLParser) _r0_o).parse((global::java.io.Reader) _r1_o);
    ((global::com.codename1.processing.XMLContent) _r2_o).@this((global::com.codename1.xml.Element) _r0_o);
    return;
//XMLVM_END_WRAPPER[com.codename1.processing.XMLContent: void <init>(java.io.InputStream)]
}