package reparto_mazapa.keymon.lat; import anywheresoftware.b4a.BA; import anywheresoftware.b4a.B4AClass; import anywheresoftware.b4a.BALayout; import anywheresoftware.b4a.debug.*; public class dbrequestmanager extends B4AClass.ImplB4AClass implements BA.SubDelegator{ private static java.util.HashMap htSubs; private void innerInitialize(BA _ba) throws Exception { if (ba == null) { ba = new anywheresoftware.b4a.ShellBA(_ba, this, htSubs, "reparto_mazapa.keymon.lat.dbrequestmanager"); if (htSubs == null) { ba.loadHtSubs(this.getClass()); htSubs = ba.htSubs; } } if (BA.isShellModeRuntimeCheck(ba)) this.getClass().getMethod("_class_globals", reparto_mazapa.keymon.lat.dbrequestmanager.class).invoke(this, new Object[] {null}); else ba.raiseEvent2(null, true, "class_globals", false); } public void innerInitializeHelper(anywheresoftware.b4a.BA _ba) throws Exception{ innerInitialize(_ba); } public Object callSub(String sub, Object sender, Object[] args) throws Exception { return BA.SubDelegator.SubNotFound; } public static class _dbresult{ public boolean IsInitialized; public Object Tag; public anywheresoftware.b4a.objects.collections.Map Columns; public anywheresoftware.b4a.objects.collections.List Rows; public void Initialize() { IsInitialized = true; Tag = new Object(); Columns = new anywheresoftware.b4a.objects.collections.Map(); Rows = new anywheresoftware.b4a.objects.collections.List(); } @Override public String toString() { return BA.TypeToString(this, false); }} public static class _dbcommand{ public boolean IsInitialized; public String Name; public Object[] Parameters; public void Initialize() { IsInitialized = true; Name = ""; Parameters = new Object[0]; { int d0 = Parameters.length; for (int i0 = 0;i0 < d0;i0++) { Parameters[i0] = new Object(); } } ; } @Override public String toString() { return BA.TypeToString(this, false); }} public anywheresoftware.b4a.keywords.Common __c = null; public Object _mtarget = null; public String _link = ""; public anywheresoftware.b4a.agraham.byteconverter.ByteConverter _bc = null; public byte _t_null = (byte)0; public byte _t_string = (byte)0; public byte _t_short = (byte)0; public byte _t_int = (byte)0; public byte _t_long = (byte)0; public byte _t_float = (byte)0; public byte _t_double = (byte)0; public byte _t_boolean = (byte)0; public byte _t_blob = (byte)0; public float _version = 0f; public Object[] _temparray = null; public String _jobtaganterior = ""; public b4a.example.dateutils _dateutils = null; public reparto_mazapa.keymon.lat.main _main = null; public reparto_mazapa.keymon.lat.appupdater _appupdater = null; public reparto_mazapa.keymon.lat.tracker _tracker = null; public reparto_mazapa.keymon.lat.starter _starter = null; public reparto_mazapa.keymon.lat.subs _subs = null; public reparto_mazapa.keymon.lat.firebasemessaging _firebasemessaging = null; public reparto_mazapa.keymon.lat.foto _foto = null; public reparto_mazapa.keymon.lat.mapa_cliente _mapa_cliente = null; public reparto_mazapa.keymon.lat.mapa_rutas _mapa_rutas = null; public reparto_mazapa.keymon.lat.newinst2 _newinst2 = null; public reparto_mazapa.keymon.lat.b4xpages _b4xpages = null; public reparto_mazapa.keymon.lat.b4xcollections _b4xcollections = null; public reparto_mazapa.keymon.lat.httputils2service _httputils2service = null; public reparto_mazapa.keymon.lat.xuiviewsutils _xuiviewsutils = null; public String _executequery(reparto_mazapa.keymon.lat.dbrequestmanager __ref,reparto_mazapa.keymon.lat.dbrequestmanager._dbcommand _command,int _limit,Object _tag) throws Exception{ __ref = this; RDebugUtils.currentModule="dbrequestmanager"; if (Debug.shouldDelegate(ba, "executequery", false)) {return ((String) Debug.delegate(ba, "executequery", new Object[] {_command,_limit,_tag}));} reparto_mazapa.keymon.lat.httpjob _j = null; anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper _ms = null; anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper _out2 = null; RDebugUtils.currentLine=64552960; //BA.debugLineNum = 64552960;BA.debugLine="Public Sub ExecuteQuery(Command As DBCommand, Limi"; RDebugUtils.currentLine=64552961; //BA.debugLineNum = 64552961;BA.debugLine="Dim j As HttpJob"; _j = new reparto_mazapa.keymon.lat.httpjob(); RDebugUtils.currentLine=64552962; //BA.debugLineNum = 64552962;BA.debugLine="Dim ms As OutputStream"; _ms = new anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper(); RDebugUtils.currentLine=64552963; //BA.debugLineNum = 64552963;BA.debugLine="Dim out2 As OutputStream = StartJob(j,ms, Tag)"; _out2 = new anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper(); _out2 = __ref._startjob /*anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper*/ (null,_j,_ms,_tag); RDebugUtils.currentLine=64552965; //BA.debugLineNum = 64552965;BA.debugLine="WriteObject(Command.Name, out2)"; __ref._writeobject /*String*/ (null,(Object)(_command.Name /*String*/ ),_out2); RDebugUtils.currentLine=64552966; //BA.debugLineNum = 64552966;BA.debugLine="WriteInt(Limit, out2)"; __ref._writeint /*String*/ (null,_limit,_out2); RDebugUtils.currentLine=64552967; //BA.debugLineNum = 64552967;BA.debugLine="WriteList(Command.Parameters, out2)"; __ref._writelist /*String*/ (null,anywheresoftware.b4a.keywords.Common.ArrayToList(_command.Parameters /*Object[]*/ ),_out2); RDebugUtils.currentLine=64552968; //BA.debugLineNum = 64552968;BA.debugLine="out2.Close"; _out2.Close(); RDebugUtils.currentLine=64552969; //BA.debugLineNum = 64552969;BA.debugLine="j.PostBytes(link & \"?method=query\", ms.ToBytesArr"; _j._postbytes /*String*/ (null,__ref._link /*String*/ +"?method=query",_ms.ToBytesArray()); RDebugUtils.currentLine=64552970; //BA.debugLineNum = 64552970;BA.debugLine="End Sub"; return ""; } public String _initialize(reparto_mazapa.keymon.lat.dbrequestmanager __ref,anywheresoftware.b4a.BA _ba,Object _target,String _connectorlink) throws Exception{ __ref = this; innerInitialize(_ba); RDebugUtils.currentModule="dbrequestmanager"; if (Debug.shouldDelegate(ba, "initialize", false)) {return ((String) Debug.delegate(ba, "initialize", new Object[] {_ba,_target,_connectorlink}));} RDebugUtils.currentLine=64487424; //BA.debugLineNum = 64487424;BA.debugLine="Public Sub Initialize (Target As Object, Connector"; RDebugUtils.currentLine=64487425; //BA.debugLineNum = 64487425;BA.debugLine="mTarget = Target"; __ref._mtarget /*Object*/ = _target; RDebugUtils.currentLine=64487426; //BA.debugLineNum = 64487426;BA.debugLine="link = ConnectorLink"; __ref._link /*String*/ = _connectorlink; RDebugUtils.currentLine=64487427; //BA.debugLineNum = 64487427;BA.debugLine="End Sub"; return ""; } public reparto_mazapa.keymon.lat.dbrequestmanager._dbresult _handlejob(reparto_mazapa.keymon.lat.dbrequestmanager __ref,reparto_mazapa.keymon.lat.httpjob _job) throws Exception{ __ref = this; RDebugUtils.currentModule="dbrequestmanager"; if (Debug.shouldDelegate(ba, "handlejob", false)) {return ((reparto_mazapa.keymon.lat.dbrequestmanager._dbresult) Debug.delegate(ba, "handlejob", new Object[] {_job}));} anywheresoftware.b4a.objects.streams.File.InputStreamWrapper _in = null; anywheresoftware.b4a.randomaccessfile.CompressedStreams _cs = null; float _serverversion = 0f; String _method = ""; reparto_mazapa.keymon.lat.dbrequestmanager._dbresult _table = null; int _numberofcolumns = 0; int _i = 0; Object[] _rowobjects = null; int _col = 0; Object _o = null; int _rows = 0; RDebugUtils.currentLine=65273856; //BA.debugLineNum = 65273856;BA.debugLine="Public Sub HandleJob(Job As HttpJob) As DBResult"; RDebugUtils.currentLine=65273858; //BA.debugLineNum = 65273858;BA.debugLine="Dim In As InputStream = Job.GetInputStream"; _in = new anywheresoftware.b4a.objects.streams.File.InputStreamWrapper(); _in = _job._getinputstream /*anywheresoftware.b4a.objects.streams.File.InputStreamWrapper*/ (null); RDebugUtils.currentLine=65273859; //BA.debugLineNum = 65273859;BA.debugLine="Dim cs As CompressedStreams"; _cs = new anywheresoftware.b4a.randomaccessfile.CompressedStreams(); RDebugUtils.currentLine=65273860; //BA.debugLineNum = 65273860;BA.debugLine="In = cs.WrapInputStream(In, \"gzip\")"; _in = _cs.WrapInputStream((java.io.InputStream)(_in.getObject()),"gzip"); RDebugUtils.currentLine=65273861; //BA.debugLineNum = 65273861;BA.debugLine="Dim serverVersion As Float = ReadObject(In) 'igno"; _serverversion = (float)(BA.ObjectToNumber(__ref._readobject /*Object*/ (null,_in))); RDebugUtils.currentLine=65273862; //BA.debugLineNum = 65273862;BA.debugLine="Dim method As String = ReadObject(In)"; _method = BA.ObjectToString(__ref._readobject /*Object*/ (null,_in)); RDebugUtils.currentLine=65273863; //BA.debugLineNum = 65273863;BA.debugLine="Dim table As DBResult"; _table = new reparto_mazapa.keymon.lat.dbrequestmanager._dbresult(); RDebugUtils.currentLine=65273864; //BA.debugLineNum = 65273864;BA.debugLine="table.Initialize"; _table.Initialize(); RDebugUtils.currentLine=65273865; //BA.debugLineNum = 65273865;BA.debugLine="table.Columns.Initialize"; _table.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Initialize(); RDebugUtils.currentLine=65273866; //BA.debugLineNum = 65273866;BA.debugLine="table.rows.Initialize"; _table.Rows /*anywheresoftware.b4a.objects.collections.List*/ .Initialize(); RDebugUtils.currentLine=65273867; //BA.debugLineNum = 65273867;BA.debugLine="table.Tag = Job.Tag"; _table.Tag /*Object*/ = _job._tag /*Object*/ ; RDebugUtils.currentLine=65273868; //BA.debugLineNum = 65273868;BA.debugLine="If jobTagAnterior <> Job.Tag Then LogColor(\"Handl"; if ((__ref._jobtaganterior /*String*/ ).equals(BA.ObjectToString(_job._tag /*Object*/ )) == false) { __c.LogImpl("365273868","HandleJob: '"+BA.ObjectToString(_job._tag /*Object*/ )+"'",__c.Colors.Blue);}; RDebugUtils.currentLine=65273869; //BA.debugLineNum = 65273869;BA.debugLine="jobTagAnterior = Job.Tag 'Mod por CHV - 211023"; __ref._jobtaganterior /*String*/ = BA.ObjectToString(_job._tag /*Object*/ ); RDebugUtils.currentLine=65273870; //BA.debugLineNum = 65273870;BA.debugLine="If method = \"query\" Then"; if ((_method).equals("query")) { RDebugUtils.currentLine=65273871; //BA.debugLineNum = 65273871;BA.debugLine="Dim numberOfColumns As Int = ReadInt(In)"; _numberofcolumns = __ref._readint /*int*/ (null,_in); RDebugUtils.currentLine=65273872; //BA.debugLineNum = 65273872;BA.debugLine="For i = 0 To numberOfColumns - 1"; { final int step15 = 1; final int limit15 = (int) (_numberofcolumns-1); _i = (int) (0) ; for (;_i <= limit15 ;_i = _i + step15 ) { RDebugUtils.currentLine=65273873; //BA.debugLineNum = 65273873;BA.debugLine="table.Columns.Put(ReadObject(In), i)"; _table.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Put(__ref._readobject /*Object*/ (null,_in),(Object)(_i)); } }; RDebugUtils.currentLine=65273875; //BA.debugLineNum = 65273875;BA.debugLine="Do While ReadByte(In) = 1"; while (__ref._readbyte /*byte*/ (null,_in)==1) { RDebugUtils.currentLine=65273876; //BA.debugLineNum = 65273876;BA.debugLine="Dim rowObjects(numberOfColumns) As Object"; _rowobjects = new Object[_numberofcolumns]; { int d0 = _rowobjects.length; for (int i0 = 0;i0 < d0;i0++) { _rowobjects[i0] = new Object(); } } ; RDebugUtils.currentLine=65273877; //BA.debugLineNum = 65273877;BA.debugLine="table.rows.Add(rowObjects)"; _table.Rows /*anywheresoftware.b4a.objects.collections.List*/ .Add((Object)(_rowobjects)); RDebugUtils.currentLine=65273878; //BA.debugLineNum = 65273878;BA.debugLine="For col = 0 To numberOfColumns - 1"; { final int step21 = 1; final int limit21 = (int) (_numberofcolumns-1); _col = (int) (0) ; for (;_col <= limit21 ;_col = _col + step21 ) { RDebugUtils.currentLine=65273879; //BA.debugLineNum = 65273879;BA.debugLine="Dim o As Object = ReadObject(In)"; _o = __ref._readobject /*Object*/ (null,_in); RDebugUtils.currentLine=65273880; //BA.debugLineNum = 65273880;BA.debugLine="rowObjects(col) = o"; _rowobjects[_col] = _o; } }; } ; }else {RDebugUtils.currentLine=65273883; //BA.debugLineNum = 65273883;BA.debugLine="Else If method = \"batch\" Then"; if ((_method).equals("batch")) { RDebugUtils.currentLine=65273884; //BA.debugLineNum = 65273884;BA.debugLine="table.Columns.Put(\"AffectedRows\", 0)"; _table.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Put((Object)("AffectedRows"),(Object)(0)); RDebugUtils.currentLine=65273885; //BA.debugLineNum = 65273885;BA.debugLine="Dim rows As Int = ReadInt(In)"; _rows = __ref._readint /*int*/ (null,_in); RDebugUtils.currentLine=65273886; //BA.debugLineNum = 65273886;BA.debugLine="For i = 0 To rows - 1"; { final int step29 = 1; final int limit29 = (int) (_rows-1); _i = (int) (0) ; for (;_i <= limit29 ;_i = _i + step29 ) { RDebugUtils.currentLine=65273887; //BA.debugLineNum = 65273887;BA.debugLine="table.rows.Add(Array As Object(ReadInt(In)))"; _table.Rows /*anywheresoftware.b4a.objects.collections.List*/ .Add((Object)(new Object[]{(Object)(__ref._readint /*int*/ (null,_in))})); } }; }} ; RDebugUtils.currentLine=65273890; //BA.debugLineNum = 65273890;BA.debugLine="In.Close"; _in.Close(); RDebugUtils.currentLine=65273891; //BA.debugLineNum = 65273891;BA.debugLine="Return table"; if (true) return _table; RDebugUtils.currentLine=65273892; //BA.debugLineNum = 65273892;BA.debugLine="End Sub"; return null; } public String _executecommand(reparto_mazapa.keymon.lat.dbrequestmanager __ref,reparto_mazapa.keymon.lat.dbrequestmanager._dbcommand _command,Object _tag) throws Exception{ __ref = this; RDebugUtils.currentModule="dbrequestmanager"; if (Debug.shouldDelegate(ba, "executecommand", false)) {return ((String) Debug.delegate(ba, "executecommand", new Object[] {_command,_tag}));} RDebugUtils.currentLine=64684032; //BA.debugLineNum = 64684032;BA.debugLine="Public Sub ExecuteCommand(Command As DBCommand, Ta"; RDebugUtils.currentLine=64684033; //BA.debugLineNum = 64684033;BA.debugLine="ExecuteBatch(Array As DBCommand(Command), Tag)"; __ref._executebatch /*String*/ (null,anywheresoftware.b4a.keywords.Common.ArrayToList(new reparto_mazapa.keymon.lat.dbrequestmanager._dbcommand[]{_command}),_tag); RDebugUtils.currentLine=64684034; //BA.debugLineNum = 64684034;BA.debugLine="End Sub"; return ""; } public anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper _bytestoimage(reparto_mazapa.keymon.lat.dbrequestmanager __ref,byte[] _bytes) throws Exception{ __ref = this; RDebugUtils.currentModule="dbrequestmanager"; if (Debug.shouldDelegate(ba, "bytestoimage", false)) {return ((anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper) Debug.delegate(ba, "bytestoimage", new Object[] {_bytes}));} anywheresoftware.b4a.objects.streams.File.InputStreamWrapper _in = null; anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper _bmp = null; RDebugUtils.currentLine=65470464; //BA.debugLineNum = 65470464;BA.debugLine="Public Sub BytesToImage(bytes() As Byte) As Bitmap"; RDebugUtils.currentLine=65470465; //BA.debugLineNum = 65470465;BA.debugLine="Dim In As InputStream"; _in = new anywheresoftware.b4a.objects.streams.File.InputStreamWrapper(); RDebugUtils.currentLine=65470466; //BA.debugLineNum = 65470466;BA.debugLine="In.InitializeFromBytesArray(bytes, 0, bytes.Lengt"; _in.InitializeFromBytesArray(_bytes,(int) (0),_bytes.length); RDebugUtils.currentLine=65470467; //BA.debugLineNum = 65470467;BA.debugLine="Dim bmp As Bitmap"; _bmp = new anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper(); RDebugUtils.currentLine=65470468; //BA.debugLineNum = 65470468;BA.debugLine="bmp.Initialize2(In)"; _bmp.Initialize2((java.io.InputStream)(_in.getObject())); RDebugUtils.currentLine=65470469; //BA.debugLineNum = 65470469;BA.debugLine="Return bmp"; if (true) return _bmp; RDebugUtils.currentLine=65470470; //BA.debugLineNum = 65470470;BA.debugLine="End Sub"; return null; } public String _class_globals(reparto_mazapa.keymon.lat.dbrequestmanager __ref) throws Exception{ __ref = this; RDebugUtils.currentModule="dbrequestmanager"; RDebugUtils.currentLine=64421888; //BA.debugLineNum = 64421888;BA.debugLine="Sub Class_Globals"; RDebugUtils.currentLine=64421889; //BA.debugLineNum = 64421889;BA.debugLine="Private mTarget As Object"; _mtarget = new Object(); RDebugUtils.currentLine=64421890; //BA.debugLineNum = 64421890;BA.debugLine="Type DBResult (Tag As Object, Columns As Map, Row"; ; RDebugUtils.currentLine=64421891; //BA.debugLineNum = 64421891;BA.debugLine="Type DBCommand (Name As String, Parameters() As O"; ; RDebugUtils.currentLine=64421892; //BA.debugLineNum = 64421892;BA.debugLine="Private link As String"; _link = ""; RDebugUtils.currentLine=64421893; //BA.debugLineNum = 64421893;BA.debugLine="Private bc As ByteConverter"; _bc = new anywheresoftware.b4a.agraham.byteconverter.ByteConverter(); RDebugUtils.currentLine=64421894; //BA.debugLineNum = 64421894;BA.debugLine="Private T_NULL = 0, T_STRING = 1, T_SHORT = 2, T_"; _t_null = (byte) (0); _t_string = (byte) (1); _t_short = (byte) (2); _t_int = (byte) (3); _t_long = (byte) (4); _t_float = (byte) (5); _t_double = (byte) (6); _t_boolean = (byte) (7); _t_blob = (byte) (8); RDebugUtils.currentLine=64421896; //BA.debugLineNum = 64421896;BA.debugLine="Private VERSION As Float = 0.9"; _version = (float) (0.9); RDebugUtils.currentLine=64421897; //BA.debugLineNum = 64421897;BA.debugLine="Private tempArray(1) As Object"; _temparray = new Object[(int) (1)]; { int d0 = _temparray.length; for (int i0 = 0;i0 < d0;i0++) { _temparray[i0] = new Object(); } } ; RDebugUtils.currentLine=64421898; //BA.debugLineNum = 64421898;BA.debugLine="Dim jobTagAnterior As String = \"\" 'Mod por CHV -"; _jobtaganterior = ""; RDebugUtils.currentLine=64421899; //BA.debugLineNum = 64421899;BA.debugLine="End Sub"; return ""; } public String _executebatch(reparto_mazapa.keymon.lat.dbrequestmanager __ref,anywheresoftware.b4a.objects.collections.List _listofcommands,Object _tag) throws Exception{ __ref = this; RDebugUtils.currentModule="dbrequestmanager"; if (Debug.shouldDelegate(ba, "executebatch", false)) {return ((String) Debug.delegate(ba, "executebatch", new Object[] {_listofcommands,_tag}));} reparto_mazapa.keymon.lat.httpjob _j = null; anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper _ms = null; anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper _out2 = null; reparto_mazapa.keymon.lat.dbrequestmanager._dbcommand _command = null; RDebugUtils.currentLine=64618496; //BA.debugLineNum = 64618496;BA.debugLine="Public Sub ExecuteBatch(ListOfCommands As List, Ta"; RDebugUtils.currentLine=64618497; //BA.debugLineNum = 64618497;BA.debugLine="Dim j As HttpJob"; _j = new reparto_mazapa.keymon.lat.httpjob(); RDebugUtils.currentLine=64618498; //BA.debugLineNum = 64618498;BA.debugLine="Dim ms As OutputStream"; _ms = new anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper(); RDebugUtils.currentLine=64618499; //BA.debugLineNum = 64618499;BA.debugLine="Dim out2 As OutputStream = StartJob(j,ms, Tag)"; _out2 = new anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper(); _out2 = __ref._startjob /*anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper*/ (null,_j,_ms,_tag); RDebugUtils.currentLine=64618500; //BA.debugLineNum = 64618500;BA.debugLine="WriteInt(ListOfCommands.Size, out2)"; __ref._writeint /*String*/ (null,_listofcommands.getSize(),_out2); RDebugUtils.currentLine=64618501; //BA.debugLineNum = 64618501;BA.debugLine="For Each Command As DBCommand In ListOfCommands"; { final anywheresoftware.b4a.BA.IterableList group5 = _listofcommands; final int groupLen5 = group5.getSize() ;int index5 = 0; ; for (; index5 < groupLen5;index5++){ _command = (reparto_mazapa.keymon.lat.dbrequestmanager._dbcommand)(group5.Get(index5)); RDebugUtils.currentLine=64618502; //BA.debugLineNum = 64618502;BA.debugLine="WriteObject(Command.Name, out2)"; __ref._writeobject /*String*/ (null,(Object)(_command.Name /*String*/ ),_out2); RDebugUtils.currentLine=64618503; //BA.debugLineNum = 64618503;BA.debugLine="WriteList(Command.Parameters, out2)"; __ref._writelist /*String*/ (null,anywheresoftware.b4a.keywords.Common.ArrayToList(_command.Parameters /*Object[]*/ ),_out2); } }; RDebugUtils.currentLine=64618505; //BA.debugLineNum = 64618505;BA.debugLine="out2.Close"; _out2.Close(); RDebugUtils.currentLine=64618506; //BA.debugLineNum = 64618506;BA.debugLine="j.PostBytes(link & \"?method=batch\", ms.ToBytesArr"; _j._postbytes /*String*/ (null,__ref._link /*String*/ +"?method=batch",_ms.ToBytesArray()); RDebugUtils.currentLine=64618507; //BA.debugLineNum = 64618507;BA.debugLine="End Sub"; return ""; } public anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper _startjob(reparto_mazapa.keymon.lat.dbrequestmanager __ref,reparto_mazapa.keymon.lat.httpjob _j,anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper _memorystream,Object _tag) throws Exception{ __ref = this; RDebugUtils.currentModule="dbrequestmanager"; if (Debug.shouldDelegate(ba, "startjob", false)) {return ((anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper) Debug.delegate(ba, "startjob", new Object[] {_j,_memorystream,_tag}));} anywheresoftware.b4a.randomaccessfile.CompressedStreams _compress = null; anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper _out = null; RDebugUtils.currentLine=64749568; //BA.debugLineNum = 64749568;BA.debugLine="Private Sub StartJob(j As HttpJob, MemoryStream As"; RDebugUtils.currentLine=64749569; //BA.debugLineNum = 64749569;BA.debugLine="j.Initialize(\"DBRequest\", mTarget)"; _j._initialize /*String*/ (null,ba,"DBRequest",__ref._mtarget /*Object*/ ); RDebugUtils.currentLine=64749570; //BA.debugLineNum = 64749570;BA.debugLine="j.Tag = Tag"; _j._tag /*Object*/ = _tag; RDebugUtils.currentLine=64749571; //BA.debugLineNum = 64749571;BA.debugLine="MemoryStream.InitializeToBytesArray(0)"; _memorystream.InitializeToBytesArray((int) (0)); RDebugUtils.currentLine=64749572; //BA.debugLineNum = 64749572;BA.debugLine="Dim compress As CompressedStreams"; _compress = new anywheresoftware.b4a.randomaccessfile.CompressedStreams(); RDebugUtils.currentLine=64749573; //BA.debugLineNum = 64749573;BA.debugLine="Dim out As OutputStream = compress.WrapOutputStre"; _out = new anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper(); _out = _compress.WrapOutputStream((java.io.OutputStream)(_memorystream.getObject()),"gzip"); RDebugUtils.currentLine=64749574; //BA.debugLineNum = 64749574;BA.debugLine="WriteObject(VERSION, out)"; __ref._writeobject /*String*/ (null,(Object)(__ref._version /*float*/ ),_out); RDebugUtils.currentLine=64749575; //BA.debugLineNum = 64749575;BA.debugLine="Return out"; if (true) return _out; RDebugUtils.currentLine=64749576; //BA.debugLineNum = 64749576;BA.debugLine="End Sub"; return null; } public String _writeint(reparto_mazapa.keymon.lat.dbrequestmanager __ref,int _i,anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper _out) throws Exception{ __ref = this; RDebugUtils.currentModule="dbrequestmanager"; if (Debug.shouldDelegate(ba, "writeint", false)) {return ((String) Debug.delegate(ba, "writeint", new Object[] {_i,_out}));} byte[] _data = null; RDebugUtils.currentLine=65077248; //BA.debugLineNum = 65077248;BA.debugLine="Private Sub WriteInt(i As Int, out As OutputStream"; RDebugUtils.currentLine=65077249; //BA.debugLineNum = 65077249;BA.debugLine="Dim data() As Byte"; _data = new byte[(int) (0)]; ; RDebugUtils.currentLine=65077250; //BA.debugLineNum = 65077250;BA.debugLine="data = bc.IntsToBytes(Array As Int(i))"; _data = __ref._bc /*anywheresoftware.b4a.agraham.byteconverter.ByteConverter*/ .IntsToBytes(new int[]{_i}); RDebugUtils.currentLine=65077251; //BA.debugLineNum = 65077251;BA.debugLine="out.WriteBytes(data, 0, data.Length)"; _out.WriteBytes(_data,(int) (0),_data.length); RDebugUtils.currentLine=65077252; //BA.debugLineNum = 65077252;BA.debugLine="End Sub"; return ""; } public String _writeobject(reparto_mazapa.keymon.lat.dbrequestmanager __ref,Object _o,anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper _out) throws Exception{ __ref = this; RDebugUtils.currentModule="dbrequestmanager"; if (Debug.shouldDelegate(ba, "writeobject", false)) {return ((String) Debug.delegate(ba, "writeobject", new Object[] {_o,_out}));} byte[] _data = null; boolean _b = false; RDebugUtils.currentLine=64880640; //BA.debugLineNum = 64880640;BA.debugLine="Private Sub WriteObject(o As Object, out As Output"; RDebugUtils.currentLine=64880641; //BA.debugLineNum = 64880641;BA.debugLine="Dim data() As Byte"; _data = new byte[(int) (0)]; ; RDebugUtils.currentLine=64880642; //BA.debugLineNum = 64880642;BA.debugLine="tempArray(0) = o"; __ref._temparray /*Object[]*/ [(int) (0)] = _o; RDebugUtils.currentLine=64880643; //BA.debugLineNum = 64880643;BA.debugLine="If tempArray(0) = Null Then"; if (__ref._temparray /*Object[]*/ [(int) (0)]== null) { RDebugUtils.currentLine=64880644; //BA.debugLineNum = 64880644;BA.debugLine="out.WriteBytes(Array As Byte(T_NULL), 0, 1)"; _out.WriteBytes(new byte[]{__ref._t_null /*byte*/ },(int) (0),(int) (1)); }else {RDebugUtils.currentLine=64880645; //BA.debugLineNum = 64880645;BA.debugLine="Else If tempArray(0) Is Short Then"; if (__ref._temparray /*Object[]*/ [(int) (0)] instanceof Short) { RDebugUtils.currentLine=64880646; //BA.debugLineNum = 64880646;BA.debugLine="out.WriteBytes(Array As Byte(T_SHORT), 0, 1)"; _out.WriteBytes(new byte[]{__ref._t_short /*byte*/ },(int) (0),(int) (1)); RDebugUtils.currentLine=64880647; //BA.debugLineNum = 64880647;BA.debugLine="data = bc.ShortsToBytes(Array As Short(o))"; _data = __ref._bc /*anywheresoftware.b4a.agraham.byteconverter.ByteConverter*/ .ShortsToBytes(new short[]{(short)(BA.ObjectToNumber(_o))}); }else {RDebugUtils.currentLine=64880648; //BA.debugLineNum = 64880648;BA.debugLine="Else If tempArray(0) Is Int Then"; if (__ref._temparray /*Object[]*/ [(int) (0)] instanceof Integer) { RDebugUtils.currentLine=64880649; //BA.debugLineNum = 64880649;BA.debugLine="out.WriteBytes(Array As Byte(T_INT), 0, 1)"; _out.WriteBytes(new byte[]{__ref._t_int /*byte*/ },(int) (0),(int) (1)); RDebugUtils.currentLine=64880650; //BA.debugLineNum = 64880650;BA.debugLine="data = bc.IntsToBytes(Array As Int(o))"; _data = __ref._bc /*anywheresoftware.b4a.agraham.byteconverter.ByteConverter*/ .IntsToBytes(new int[]{(int)(BA.ObjectToNumber(_o))}); }else {RDebugUtils.currentLine=64880651; //BA.debugLineNum = 64880651;BA.debugLine="Else If tempArray(0) Is Float Then"; if (__ref._temparray /*Object[]*/ [(int) (0)] instanceof Float) { RDebugUtils.currentLine=64880652; //BA.debugLineNum = 64880652;BA.debugLine="out.WriteBytes(Array As Byte(T_FLOAT), 0, 1)"; _out.WriteBytes(new byte[]{__ref._t_float /*byte*/ },(int) (0),(int) (1)); RDebugUtils.currentLine=64880653; //BA.debugLineNum = 64880653;BA.debugLine="data = bc.FloatsToBytes(Array As Float(o))"; _data = __ref._bc /*anywheresoftware.b4a.agraham.byteconverter.ByteConverter*/ .FloatsToBytes(new float[]{(float)(BA.ObjectToNumber(_o))}); }else {RDebugUtils.currentLine=64880654; //BA.debugLineNum = 64880654;BA.debugLine="Else If tempArray(0) Is Double Then"; if (__ref._temparray /*Object[]*/ [(int) (0)] instanceof Double) { RDebugUtils.currentLine=64880655; //BA.debugLineNum = 64880655;BA.debugLine="out.WriteBytes(Array As Byte(T_DOUBLE), 0, 1)"; _out.WriteBytes(new byte[]{__ref._t_double /*byte*/ },(int) (0),(int) (1)); RDebugUtils.currentLine=64880656; //BA.debugLineNum = 64880656;BA.debugLine="data = bc.DoublesToBytes(Array As Double(o))"; _data = __ref._bc /*anywheresoftware.b4a.agraham.byteconverter.ByteConverter*/ .DoublesToBytes(new double[]{(double)(BA.ObjectToNumber(_o))}); }else {RDebugUtils.currentLine=64880657; //BA.debugLineNum = 64880657;BA.debugLine="Else If tempArray(0) Is Long Then"; if (__ref._temparray /*Object[]*/ [(int) (0)] instanceof Long) { RDebugUtils.currentLine=64880658; //BA.debugLineNum = 64880658;BA.debugLine="out.WriteBytes(Array As Byte(T_LONG), 0, 1)"; _out.WriteBytes(new byte[]{__ref._t_long /*byte*/ },(int) (0),(int) (1)); RDebugUtils.currentLine=64880659; //BA.debugLineNum = 64880659;BA.debugLine="data = bc.LongsToBytes(Array As Long(o))"; _data = __ref._bc /*anywheresoftware.b4a.agraham.byteconverter.ByteConverter*/ .LongsToBytes(new long[]{BA.ObjectToLongNumber(_o)}); }else {RDebugUtils.currentLine=64880660; //BA.debugLineNum = 64880660;BA.debugLine="Else If tempArray(0) Is Boolean Then"; if (__ref._temparray /*Object[]*/ [(int) (0)] instanceof Boolean) { RDebugUtils.currentLine=64880661; //BA.debugLineNum = 64880661;BA.debugLine="out.WriteBytes(Array As Byte(T_BOOLEAN), 0, 1)"; _out.WriteBytes(new byte[]{__ref._t_boolean /*byte*/ },(int) (0),(int) (1)); RDebugUtils.currentLine=64880662; //BA.debugLineNum = 64880662;BA.debugLine="Dim b As Boolean = 0"; _b = BA.ObjectToBoolean(0); RDebugUtils.currentLine=64880663; //BA.debugLineNum = 64880663;BA.debugLine="Dim data(1) As Byte"; _data = new byte[(int) (1)]; ; RDebugUtils.currentLine=64880664; //BA.debugLineNum = 64880664;BA.debugLine="If b Then data(0) = 1 Else data(0) = 0"; if (_b) { _data[(int) (0)] = (byte) (1);} else { _data[(int) (0)] = (byte) (0);}; }else {RDebugUtils.currentLine=64880665; //BA.debugLineNum = 64880665;BA.debugLine="Else If GetType(tempArray(0)) = \"[B\" Then"; if ((__c.GetType(__ref._temparray /*Object[]*/ [(int) (0)])).equals("[B")) { RDebugUtils.currentLine=64880666; //BA.debugLineNum = 64880666;BA.debugLine="data = o"; _data = (byte[])(_o); RDebugUtils.currentLine=64880667; //BA.debugLineNum = 64880667;BA.debugLine="out.WriteBytes(Array As Byte(T_BLOB), 0, 1)"; _out.WriteBytes(new byte[]{__ref._t_blob /*byte*/ },(int) (0),(int) (1)); RDebugUtils.currentLine=64880668; //BA.debugLineNum = 64880668;BA.debugLine="WriteInt(data.Length, out)"; __ref._writeint /*String*/ (null,_data.length,_out); }else { RDebugUtils.currentLine=64880670; //BA.debugLineNum = 64880670;BA.debugLine="out.WriteBytes(Array As Byte(T_STRING), 0, 1)"; _out.WriteBytes(new byte[]{__ref._t_string /*byte*/ },(int) (0),(int) (1)); RDebugUtils.currentLine=64880671; //BA.debugLineNum = 64880671;BA.debugLine="data = bc.StringToBytes(o, \"UTF8\")"; _data = __ref._bc /*anywheresoftware.b4a.agraham.byteconverter.ByteConverter*/ .StringToBytes(BA.ObjectToString(_o),"UTF8"); RDebugUtils.currentLine=64880672; //BA.debugLineNum = 64880672;BA.debugLine="WriteInt(data.Length, out)"; __ref._writeint /*String*/ (null,_data.length,_out); }}}}}}}} ; RDebugUtils.currentLine=64880674; //BA.debugLineNum = 64880674;BA.debugLine="If data.Length > 0 Then out.WriteBytes(data, 0, d"; if (_data.length>0) { _out.WriteBytes(_data,(int) (0),_data.length);}; RDebugUtils.currentLine=64880675; //BA.debugLineNum = 64880675;BA.debugLine="End Sub"; return ""; } public String _writelist(reparto_mazapa.keymon.lat.dbrequestmanager __ref,anywheresoftware.b4a.objects.collections.List _parameters,anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper _out) throws Exception{ __ref = this; RDebugUtils.currentModule="dbrequestmanager"; if (Debug.shouldDelegate(ba, "writelist", false)) {return ((String) Debug.delegate(ba, "writelist", new Object[] {_parameters,_out}));} byte[] _data = null; Object _o = null; RDebugUtils.currentLine=64815104; //BA.debugLineNum = 64815104;BA.debugLine="Private Sub WriteList(Parameters As List, out As O"; RDebugUtils.currentLine=64815105; //BA.debugLineNum = 64815105;BA.debugLine="Dim data() As Byte"; _data = new byte[(int) (0)]; ; RDebugUtils.currentLine=64815106; //BA.debugLineNum = 64815106;BA.debugLine="If Parameters = Null Or Parameters.IsInitialized"; if (_parameters== null || _parameters.IsInitialized()==__c.False) { RDebugUtils.currentLine=64815107; //BA.debugLineNum = 64815107;BA.debugLine="Dim Parameters As List"; _parameters = new anywheresoftware.b4a.objects.collections.List(); RDebugUtils.currentLine=64815108; //BA.debugLineNum = 64815108;BA.debugLine="Parameters.Initialize"; _parameters.Initialize(); }; RDebugUtils.currentLine=64815110; //BA.debugLineNum = 64815110;BA.debugLine="data = bc.IntsToBytes(Array As Int(Parameters.Siz"; _data = __ref._bc /*anywheresoftware.b4a.agraham.byteconverter.ByteConverter*/ .IntsToBytes(new int[]{_parameters.getSize()}); RDebugUtils.currentLine=64815111; //BA.debugLineNum = 64815111;BA.debugLine="out.WriteBytes(data, 0, data.Length)"; _out.WriteBytes(_data,(int) (0),_data.length); RDebugUtils.currentLine=64815112; //BA.debugLineNum = 64815112;BA.debugLine="For Each o As Object In Parameters"; { final anywheresoftware.b4a.BA.IterableList group8 = _parameters; final int groupLen8 = group8.getSize() ;int index8 = 0; ; for (; index8 < groupLen8;index8++){ _o = group8.Get(index8); RDebugUtils.currentLine=64815113; //BA.debugLineNum = 64815113;BA.debugLine="WriteObject(o, out)"; __ref._writeobject /*String*/ (null,_o,_out); } }; RDebugUtils.currentLine=64815115; //BA.debugLineNum = 64815115;BA.debugLine="End Sub"; return ""; } public byte[] _filetobytes(reparto_mazapa.keymon.lat.dbrequestmanager __ref,String _dir,String _filename) throws Exception{ __ref = this; RDebugUtils.currentModule="dbrequestmanager"; if (Debug.shouldDelegate(ba, "filetobytes", false)) {return ((byte[]) Debug.delegate(ba, "filetobytes", new Object[] {_dir,_filename}));} anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper _out = null; anywheresoftware.b4a.objects.streams.File.InputStreamWrapper _in = null; RDebugUtils.currentLine=65339392; //BA.debugLineNum = 65339392;BA.debugLine="Public Sub FileToBytes(Dir As String, FileName As"; RDebugUtils.currentLine=65339393; //BA.debugLineNum = 65339393;BA.debugLine="Dim out As OutputStream"; _out = new anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper(); RDebugUtils.currentLine=65339394; //BA.debugLineNum = 65339394;BA.debugLine="out.InitializeToBytesArray(0)"; _out.InitializeToBytesArray((int) (0)); RDebugUtils.currentLine=65339395; //BA.debugLineNum = 65339395;BA.debugLine="Dim In As InputStream = File.OpenInput(Dir, FileN"; _in = new anywheresoftware.b4a.objects.streams.File.InputStreamWrapper(); _in = __c.File.OpenInput(_dir,_filename); RDebugUtils.currentLine=65339396; //BA.debugLineNum = 65339396;BA.debugLine="File.Copy2(In, out)"; __c.File.Copy2((java.io.InputStream)(_in.getObject()),(java.io.OutputStream)(_out.getObject())); RDebugUtils.currentLine=65339397; //BA.debugLineNum = 65339397;BA.debugLine="out.Close"; _out.Close(); RDebugUtils.currentLine=65339398; //BA.debugLineNum = 65339398;BA.debugLine="Return out.ToBytesArray"; if (true) return _out.ToBytesArray(); RDebugUtils.currentLine=65339399; //BA.debugLineNum = 65339399;BA.debugLine="End Sub"; return null; } public Object _readobject(reparto_mazapa.keymon.lat.dbrequestmanager __ref,anywheresoftware.b4a.objects.streams.File.InputStreamWrapper _in) throws Exception{ __ref = this; RDebugUtils.currentModule="dbrequestmanager"; if (Debug.shouldDelegate(ba, "readobject", false)) {return ((Object) Debug.delegate(ba, "readobject", new Object[] {_in}));} byte[] _data = null; byte _b = (byte)0; int _len = 0; RDebugUtils.currentLine=64946176; //BA.debugLineNum = 64946176;BA.debugLine="Private Sub ReadObject(In As InputStream) As Objec"; RDebugUtils.currentLine=64946177; //BA.debugLineNum = 64946177;BA.debugLine="Dim data(1) As Byte"; _data = new byte[(int) (1)]; ; RDebugUtils.currentLine=64946178; //BA.debugLineNum = 64946178;BA.debugLine="In.ReadBytes(data, 0, 1)"; _in.ReadBytes(_data,(int) (0),(int) (1)); RDebugUtils.currentLine=64946179; //BA.debugLineNum = 64946179;BA.debugLine="Select data(0)"; switch (BA.switchObjectToInt(_data[(int) (0)],__ref._t_null /*byte*/ ,__ref._t_short /*byte*/ ,__ref._t_int /*byte*/ ,__ref._t_long /*byte*/ ,__ref._t_float /*byte*/ ,__ref._t_double /*byte*/ ,__ref._t_boolean /*byte*/ ,__ref._t_blob /*byte*/ )) { case 0: { RDebugUtils.currentLine=64946181; //BA.debugLineNum = 64946181;BA.debugLine="Return Null"; if (true) return __c.Null; break; } case 1: { RDebugUtils.currentLine=64946183; //BA.debugLineNum = 64946183;BA.debugLine="Dim data(2) As Byte"; _data = new byte[(int) (2)]; ; RDebugUtils.currentLine=64946184; //BA.debugLineNum = 64946184;BA.debugLine="Return bc.ShortsFromBytes(ReadBytesFully(In, da"; if (true) return (Object)(__ref._bc /*anywheresoftware.b4a.agraham.byteconverter.ByteConverter*/ .ShortsFromBytes(__ref._readbytesfully /*byte[]*/ (null,_in,_data,_data.length))[(int) (0)]); break; } case 2: { RDebugUtils.currentLine=64946186; //BA.debugLineNum = 64946186;BA.debugLine="Dim data(4) As Byte"; _data = new byte[(int) (4)]; ; RDebugUtils.currentLine=64946187; //BA.debugLineNum = 64946187;BA.debugLine="Return bc.IntsFromBytes(ReadBytesFully(In, data"; if (true) return (Object)(__ref._bc /*anywheresoftware.b4a.agraham.byteconverter.ByteConverter*/ .IntsFromBytes(__ref._readbytesfully /*byte[]*/ (null,_in,_data,_data.length))[(int) (0)]); break; } case 3: { RDebugUtils.currentLine=64946189; //BA.debugLineNum = 64946189;BA.debugLine="Dim data(8) As Byte"; _data = new byte[(int) (8)]; ; RDebugUtils.currentLine=64946190; //BA.debugLineNum = 64946190;BA.debugLine="Return bc.LongsFromBytes(ReadBytesFully(In, dat"; if (true) return (Object)(__ref._bc /*anywheresoftware.b4a.agraham.byteconverter.ByteConverter*/ .LongsFromBytes(__ref._readbytesfully /*byte[]*/ (null,_in,_data,_data.length))[(int) (0)]); break; } case 4: { RDebugUtils.currentLine=64946192; //BA.debugLineNum = 64946192;BA.debugLine="Dim data(4) As Byte"; _data = new byte[(int) (4)]; ; RDebugUtils.currentLine=64946193; //BA.debugLineNum = 64946193;BA.debugLine="Return bc.FloatsFromBytes(ReadBytesFully(In, da"; if (true) return (Object)(__ref._bc /*anywheresoftware.b4a.agraham.byteconverter.ByteConverter*/ .FloatsFromBytes(__ref._readbytesfully /*byte[]*/ (null,_in,_data,_data.length))[(int) (0)]); break; } case 5: { RDebugUtils.currentLine=64946195; //BA.debugLineNum = 64946195;BA.debugLine="Dim data(8) As Byte"; _data = new byte[(int) (8)]; ; RDebugUtils.currentLine=64946196; //BA.debugLineNum = 64946196;BA.debugLine="Return bc.DoublesFromBytes(ReadBytesFully(In, d"; if (true) return (Object)(__ref._bc /*anywheresoftware.b4a.agraham.byteconverter.ByteConverter*/ .DoublesFromBytes(__ref._readbytesfully /*byte[]*/ (null,_in,_data,_data.length))[(int) (0)]); break; } case 6: { RDebugUtils.currentLine=64946198; //BA.debugLineNum = 64946198;BA.debugLine="Dim b As Byte = ReadByte(In)"; _b = __ref._readbyte /*byte*/ (null,_in); RDebugUtils.currentLine=64946199; //BA.debugLineNum = 64946199;BA.debugLine="Return b = 1"; if (true) return (Object)(_b==1); break; } case 7: { RDebugUtils.currentLine=64946201; //BA.debugLineNum = 64946201;BA.debugLine="Dim len As Int = ReadInt(In)"; _len = __ref._readint /*int*/ (null,_in); RDebugUtils.currentLine=64946202; //BA.debugLineNum = 64946202;BA.debugLine="Dim data(len) As Byte"; _data = new byte[_len]; ; RDebugUtils.currentLine=64946203; //BA.debugLineNum = 64946203;BA.debugLine="Return ReadBytesFully(In, data, data.Length)"; if (true) return (Object)(__ref._readbytesfully /*byte[]*/ (null,_in,_data,_data.length)); break; } default: { RDebugUtils.currentLine=64946205; //BA.debugLineNum = 64946205;BA.debugLine="Dim len As Int = ReadInt(In)"; _len = __ref._readint /*int*/ (null,_in); RDebugUtils.currentLine=64946206; //BA.debugLineNum = 64946206;BA.debugLine="Dim data(len) As Byte"; _data = new byte[_len]; ; RDebugUtils.currentLine=64946207; //BA.debugLineNum = 64946207;BA.debugLine="ReadBytesFully(In, data, data.Length)"; __ref._readbytesfully /*byte[]*/ (null,_in,_data,_data.length); RDebugUtils.currentLine=64946208; //BA.debugLineNum = 64946208;BA.debugLine="Return BytesToString(data, 0, data.Length, \"UTF"; if (true) return (Object)(__c.BytesToString(_data,(int) (0),_data.length,"UTF8")); break; } } ; RDebugUtils.currentLine=64946210; //BA.debugLineNum = 64946210;BA.debugLine="End Sub"; return null; } public int _readint(reparto_mazapa.keymon.lat.dbrequestmanager __ref,anywheresoftware.b4a.objects.streams.File.InputStreamWrapper _in) throws Exception{ __ref = this; RDebugUtils.currentModule="dbrequestmanager"; if (Debug.shouldDelegate(ba, "readint", false)) {return ((Integer) Debug.delegate(ba, "readint", new Object[] {_in}));} byte[] _data = null; RDebugUtils.currentLine=65142784; //BA.debugLineNum = 65142784;BA.debugLine="Private Sub ReadInt(In As InputStream) As Int"; RDebugUtils.currentLine=65142785; //BA.debugLineNum = 65142785;BA.debugLine="Dim data(4) As Byte"; _data = new byte[(int) (4)]; ; RDebugUtils.currentLine=65142786; //BA.debugLineNum = 65142786;BA.debugLine="Return bc.IntsFromBytes(ReadBytesFully(In, data,"; if (true) return __ref._bc /*anywheresoftware.b4a.agraham.byteconverter.ByteConverter*/ .IntsFromBytes(__ref._readbytesfully /*byte[]*/ (null,_in,_data,_data.length))[(int) (0)]; RDebugUtils.currentLine=65142787; //BA.debugLineNum = 65142787;BA.debugLine="End Sub"; return 0; } public byte _readbyte(reparto_mazapa.keymon.lat.dbrequestmanager __ref,anywheresoftware.b4a.objects.streams.File.InputStreamWrapper _in) throws Exception{ __ref = this; RDebugUtils.currentModule="dbrequestmanager"; if (Debug.shouldDelegate(ba, "readbyte", false)) {return ((Byte) Debug.delegate(ba, "readbyte", new Object[] {_in}));} byte[] _data = null; RDebugUtils.currentLine=65208320; //BA.debugLineNum = 65208320;BA.debugLine="Private Sub ReadByte(In As InputStream) As Byte"; RDebugUtils.currentLine=65208321; //BA.debugLineNum = 65208321;BA.debugLine="Dim data(1) As Byte"; _data = new byte[(int) (1)]; ; RDebugUtils.currentLine=65208322; //BA.debugLineNum = 65208322;BA.debugLine="In.ReadBytes(data, 0, 1)"; _in.ReadBytes(_data,(int) (0),(int) (1)); RDebugUtils.currentLine=65208323; //BA.debugLineNum = 65208323;BA.debugLine="Return data(0)"; if (true) return _data[(int) (0)]; RDebugUtils.currentLine=65208324; //BA.debugLineNum = 65208324;BA.debugLine="End Sub"; return (byte)0; } public byte[] _imagetobytes(reparto_mazapa.keymon.lat.dbrequestmanager __ref,anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper _image) throws Exception{ __ref = this; RDebugUtils.currentModule="dbrequestmanager"; if (Debug.shouldDelegate(ba, "imagetobytes", false)) {return ((byte[]) Debug.delegate(ba, "imagetobytes", new Object[] {_image}));} anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper _out = null; RDebugUtils.currentLine=65404928; //BA.debugLineNum = 65404928;BA.debugLine="Public Sub ImageToBytes(Image As Bitmap) As Byte()"; RDebugUtils.currentLine=65404929; //BA.debugLineNum = 65404929;BA.debugLine="Dim out As OutputStream"; _out = new anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper(); RDebugUtils.currentLine=65404930; //BA.debugLineNum = 65404930;BA.debugLine="out.InitializeToBytesArray(0)"; _out.InitializeToBytesArray((int) (0)); RDebugUtils.currentLine=65404931; //BA.debugLineNum = 65404931;BA.debugLine="Image.WriteToStream(out, 100, \"JPEG\")"; _image.WriteToStream((java.io.OutputStream)(_out.getObject()),(int) (100),BA.getEnumFromString(android.graphics.Bitmap.CompressFormat.class,"JPEG")); RDebugUtils.currentLine=65404932; //BA.debugLineNum = 65404932;BA.debugLine="out.Close"; _out.Close(); RDebugUtils.currentLine=65404933; //BA.debugLineNum = 65404933;BA.debugLine="Return out.ToBytesArray"; if (true) return _out.ToBytesArray(); RDebugUtils.currentLine=65404934; //BA.debugLineNum = 65404934;BA.debugLine="End Sub"; return null; } public String _printtable(reparto_mazapa.keymon.lat.dbrequestmanager __ref,reparto_mazapa.keymon.lat.dbrequestmanager._dbresult _table) throws Exception{ __ref = this; RDebugUtils.currentModule="dbrequestmanager"; if (Debug.shouldDelegate(ba, "printtable", false)) {return ((String) Debug.delegate(ba, "printtable", new Object[] {_table}));} anywheresoftware.b4a.keywords.StringBuilderWrapper _sb = null; Object _col = null; Object[] _row = null; Object _record = null; RDebugUtils.currentLine=65536000; //BA.debugLineNum = 65536000;BA.debugLine="Public Sub PrintTable(Table As DBResult)"; RDebugUtils.currentLine=65536001; //BA.debugLineNum = 65536001;BA.debugLine="Log(\"Tag: \" & Table.Tag & \", Columns: \" & Table.C"; __c.LogImpl("365536001","Tag: "+BA.ObjectToString(_table.Tag /*Object*/ )+", Columns: "+BA.NumberToString(_table.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .getSize())+", Rows: "+BA.NumberToString(_table.Rows /*anywheresoftware.b4a.objects.collections.List*/ .getSize()),0); RDebugUtils.currentLine=65536002; //BA.debugLineNum = 65536002;BA.debugLine="Dim sb As StringBuilder"; _sb = new anywheresoftware.b4a.keywords.StringBuilderWrapper(); RDebugUtils.currentLine=65536003; //BA.debugLineNum = 65536003;BA.debugLine="sb.Initialize"; _sb.Initialize(); RDebugUtils.currentLine=65536004; //BA.debugLineNum = 65536004;BA.debugLine="For Each col In Table.Columns.Keys"; { final anywheresoftware.b4a.BA.IterableList group4 = _table.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Keys(); final int groupLen4 = group4.getSize() ;int index4 = 0; ; for (; index4 < groupLen4;index4++){ _col = group4.Get(index4); RDebugUtils.currentLine=65536005; //BA.debugLineNum = 65536005;BA.debugLine="sb.Append(col).Append(TAB)"; _sb.Append(BA.ObjectToString(_col)).Append(__c.TAB); } }; RDebugUtils.currentLine=65536007; //BA.debugLineNum = 65536007;BA.debugLine="Log(sb.ToString)"; __c.LogImpl("365536007",_sb.ToString(),0); RDebugUtils.currentLine=65536008; //BA.debugLineNum = 65536008;BA.debugLine="For Each row() As Object In Table.Rows"; { final anywheresoftware.b4a.BA.IterableList group8 = _table.Rows /*anywheresoftware.b4a.objects.collections.List*/ ; final int groupLen8 = group8.getSize() ;int index8 = 0; ; for (; index8 < groupLen8;index8++){ _row = (Object[])(group8.Get(index8)); RDebugUtils.currentLine=65536009; //BA.debugLineNum = 65536009;BA.debugLine="Dim sb As StringBuilder"; _sb = new anywheresoftware.b4a.keywords.StringBuilderWrapper(); RDebugUtils.currentLine=65536010; //BA.debugLineNum = 65536010;BA.debugLine="sb.Initialize"; _sb.Initialize(); RDebugUtils.currentLine=65536011; //BA.debugLineNum = 65536011;BA.debugLine="For Each record As Object In row"; { final Object[] group11 = _row; final int groupLen11 = group11.length ;int index11 = 0; ; for (; index11 < groupLen11;index11++){ _record = group11[index11]; RDebugUtils.currentLine=65536012; //BA.debugLineNum = 65536012;BA.debugLine="sb.Append(record).Append(TAB)"; _sb.Append(BA.ObjectToString(_record)).Append(__c.TAB); } }; RDebugUtils.currentLine=65536014; //BA.debugLineNum = 65536014;BA.debugLine="ToastMessageShow(sb.ToString, True)"; __c.ToastMessageShow(BA.ObjectToCharSequence(_sb.ToString()),__c.True); } }; RDebugUtils.currentLine=65536016; //BA.debugLineNum = 65536016;BA.debugLine="End Sub"; return ""; } public byte[] _readbytesfully(reparto_mazapa.keymon.lat.dbrequestmanager __ref,anywheresoftware.b4a.objects.streams.File.InputStreamWrapper _in,byte[] _data,int _len) throws Exception{ __ref = this; RDebugUtils.currentModule="dbrequestmanager"; if (Debug.shouldDelegate(ba, "readbytesfully", false)) {return ((byte[]) Debug.delegate(ba, "readbytesfully", new Object[] {_in,_data,_len}));} int _count = 0; int _read = 0; RDebugUtils.currentLine=65011712; //BA.debugLineNum = 65011712;BA.debugLine="Private Sub ReadBytesFully(In As InputStream, Data"; RDebugUtils.currentLine=65011713; //BA.debugLineNum = 65011713;BA.debugLine="Dim count = 0, read As Int"; _count = (int) (0); _read = 0; RDebugUtils.currentLine=65011714; //BA.debugLineNum = 65011714;BA.debugLine="Do While count < Len And read > -1"; while (_count<_len && _read>-1) { RDebugUtils.currentLine=65011715; //BA.debugLineNum = 65011715;BA.debugLine="read = In.ReadBytes(Data, count, Len - count)"; _read = _in.ReadBytes(_data,_count,(int) (_len-_count)); RDebugUtils.currentLine=65011716; //BA.debugLineNum = 65011716;BA.debugLine="count = count + read"; _count = (int) (_count+_read); } ; RDebugUtils.currentLine=65011718; //BA.debugLineNum = 65011718;BA.debugLine="Return Data"; if (true) return _data; RDebugUtils.currentLine=65011719; //BA.debugLineNum = 65011719;BA.debugLine="End Sub"; return null; } }