All Downloads are FREE. Search and download functionalities are using the official Maven repository.

system.net.WebClient Maven / Gradle / Ivy

/*
 *  MIT License
 *
 *  Copyright (c) 2024 MASES s.r.l.
 *
 *  Permission is hereby granted, free of charge, to any person obtaining a copy
 *  of this software and associated documentation files (the "Software"), to deal
 *  in the Software without restriction, including without limitation the rights
 *  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 *  copies of the Software, and to permit persons to whom the Software is
 *  furnished to do so, subject to the following conditions:
 *
 *  The above copyright notice and this permission notice shall be included in all
 *  copies or substantial portions of the Software.
 *
 *  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 *  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 *  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 *  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 *  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 *  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 *  SOFTWARE.
 */

/**************************************************************************************
 * 
 *      This code was generated from a template using JCOReflector v. 1.15.0.0
 * 
 *      Manual changes to this file may cause unexpected behavior in your application.
 *      Manual changes to this file will be overwritten if the code is regenerated.
 * 
 *************************************************************************************/

package system.net;

import org.mases.jcobridge.*;
import org.mases.jcobridge.netreflection.*;
import java.util.ArrayList;

// Import section
import system.componentmodel.Component;
import system.Uri;
import system.collections.specialized.NameValueCollection;
import system.io.Stream;
import system.threading.tasks.Task;
import system.net.cache.RequestCachePolicy;
import system.net.ICredentials;
import system.net.ICredentialsImplementation;
import system.net.IWebProxy;
import system.net.IWebProxyImplementation;
import system.net.WebHeaderCollection;
import system.text.Encoding;
import system.componentmodel.AsyncCompletedEventHandler;
import system.net.DownloadDataCompletedEventHandler;
import system.net.DownloadProgressChangedEventHandler;
import system.net.DownloadStringCompletedEventHandler;
import system.net.OpenReadCompletedEventHandler;
import system.net.OpenWriteCompletedEventHandler;
import system.net.UploadDataCompletedEventHandler;
import system.net.UploadFileCompletedEventHandler;
import system.net.UploadProgressChangedEventHandler;
import system.net.UploadStringCompletedEventHandler;
import system.net.UploadValuesCompletedEventHandler;
import system.net.WriteStreamClosedEventHandler;


/**
 * The base .NET class managing System.Net.WebClient, System.Net.WebClient, Version=9.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51.
 * 

* * .NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Net.WebClient *

* * Powered by JCOBridge: more info at https://www.jcobridge.com * * @author MASES s.r.l https://masesgroup.com * @version 1.15.0.0 */ public class WebClient extends Component { /** * Fully assembly qualified name: System.Net.WebClient, Version=9.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51 */ public static final String assemblyFullName = "System.Net.WebClient, Version=9.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51"; /** * Assembly name: System.Net.WebClient */ public static final String assemblyShortName = "System.Net.WebClient"; /** * Qualified class name: System.Net.WebClient */ public static final String className = "System.Net.WebClient"; static JCOBridge bridge = JCOBridgeInstance.getInstance(assemblyFullName); /** * The type managed from JCOBridge. See {@link JCType} */ public static JCType classType = createType(); static JCEnum enumInstance = null; JCObject classInstance = null; static JCType createType() { try { String classToCreate = className + ", " + (JCOReflector.getUseFullAssemblyName() ? assemblyFullName : assemblyShortName); if (JCOReflector.getDebug()) JCOReflector.writeLog("Creating %s", classToCreate); JCType typeCreated = bridge.GetType(classToCreate); if (JCOReflector.getDebug()) JCOReflector.writeLog("Created: %s", (typeCreated != null) ? typeCreated.toString() : "Returned null value"); return typeCreated; } catch (JCException e) { JCOReflector.writeLog(e); return null; } } void addReference(String ref) throws Throwable { try { bridge.AddReference(ref); } catch (JCNativeException jcne) { throw translateException(jcne); } } /** * Internal constructor. Use with caution */ public WebClient(java.lang.Object instance) throws Throwable { super(instance); if (instance instanceof JCObject) { classInstance = (JCObject) instance; } else throw new Exception("Cannot manage object, it is not a JCObject"); } public String getJCOAssemblyName() { return assemblyFullName; } public String getJCOClassName() { return className; } public String getJCOObjectName() { return className + ", " + (JCOReflector.getUseFullAssemblyName() ? assemblyFullName : assemblyShortName); } public java.lang.Object getJCOInstance() { return classInstance; } public void setJCOInstance(JCObject instance) { classInstance = instance; super.setJCOInstance(classInstance); } public JCType getJCOType() { return classType; } /** * Try to cast the {@link IJCOBridgeReflected} instance into {@link WebClient}, a cast assert is made to check if types are compatible. * @param from {@link IJCOBridgeReflected} instance to be casted * @return {@link WebClient} instance * @throws java.lang.Throwable in case of error during cast operation */ public static WebClient cast(IJCOBridgeReflected from) throws Throwable { NetType.AssertCast(classType, from); return new WebClient(from.getJCOInstance()); } // Constructors section public WebClient() throws Throwable, system.ArgumentException, system.NotSupportedException, system.InvalidOperationException, system.ArgumentOutOfRangeException, system.ArgumentNullException { try { // add reference to assemblyName.dll file addReference(JCOReflector.getUseFullAssemblyName() ? assemblyFullName : assemblyShortName); setJCOInstance((JCObject)classType.NewObject()); } catch (JCNativeException jcne) { throw translateException(jcne); } } // Methods section public byte[] DownloadData(java.lang.String address) throws Throwable, system.ArgumentException, system.NotSupportedException, system.InvalidOperationException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.PlatformNotSupportedException, system.NullReferenceException, system.OutOfMemoryException, system.runtime.interopservices.ExternalException, system.globalization.CultureNotFoundException, system.UriFormatException, system.net.WebException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { ArrayList resultingArrayList = new ArrayList(); JCObject resultingObjects = (JCObject)classInstance.Invoke("DownloadData", address); for (java.lang.Object resultingObject : resultingObjects) { resultingArrayList.add(resultingObject); } byte[] resultingArray = new byte[resultingArrayList.size()]; for(int indexDownloadData = 0; indexDownloadData < resultingArrayList.size(); indexDownloadData++ ) { resultingArray[indexDownloadData] = (byte)resultingArrayList.get(indexDownloadData); } return resultingArray; } catch (JCNativeException jcne) { throw translateException(jcne); } } public byte[] DownloadData(Uri address) throws Throwable, system.ArgumentException, system.ArgumentOutOfRangeException, system.PlatformNotSupportedException, system.NotSupportedException, system.ObjectDisposedException, system.InvalidOperationException, system.RankException, system.ArrayTypeMismatchException, system.ArgumentNullException, system.globalization.CultureNotFoundException, system.IndexOutOfRangeException, system.UriFormatException, system.OutOfMemoryException, system.diagnostics.UnreachableException, system.net.WebException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { ArrayList resultingArrayList = new ArrayList(); JCObject resultingObjects = (JCObject)classInstance.Invoke("DownloadData", address == null ? null : address.getJCOInstance()); for (java.lang.Object resultingObject : resultingObjects) { resultingArrayList.add(resultingObject); } byte[] resultingArray = new byte[resultingArrayList.size()]; for(int indexDownloadData = 0; indexDownloadData < resultingArrayList.size(); indexDownloadData++ ) { resultingArray[indexDownloadData] = (byte)resultingArrayList.get(indexDownloadData); } return resultingArray; } catch (JCNativeException jcne) { throw translateException(jcne); } } public byte[] UploadData(java.lang.String address, byte[] data) throws Throwable, system.ArgumentException, system.NotSupportedException, system.InvalidOperationException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.PlatformNotSupportedException, system.NullReferenceException, system.OutOfMemoryException, system.runtime.interopservices.ExternalException, system.globalization.CultureNotFoundException, system.UriFormatException, system.net.WebException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { ArrayList resultingArrayList = new ArrayList(); JCObject resultingObjects = (JCObject)classInstance.Invoke("UploadData", address, data); for (java.lang.Object resultingObject : resultingObjects) { resultingArrayList.add(resultingObject); } byte[] resultingArray = new byte[resultingArrayList.size()]; for(int indexUploadData = 0; indexUploadData < resultingArrayList.size(); indexUploadData++ ) { resultingArray[indexUploadData] = (byte)resultingArrayList.get(indexUploadData); } return resultingArray; } catch (JCNativeException jcne) { throw translateException(jcne); } } public byte[] UploadData(java.lang.String dupParam0, JCORefOut dupParam1) throws Throwable, system.ArgumentException, system.NotSupportedException, system.InvalidOperationException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.PlatformNotSupportedException, system.NullReferenceException, system.OutOfMemoryException, system.runtime.interopservices.ExternalException, system.globalization.CultureNotFoundException, system.UriFormatException, system.net.WebException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { ArrayList resultingArrayList = new ArrayList(); JCObject resultingObjects = (JCObject)classInstance.Invoke("UploadData", dupParam0, dupParam1.getJCRefOut()); for (java.lang.Object resultingObject : resultingObjects) { resultingArrayList.add(resultingObject); } byte[] resultingArray = new byte[resultingArrayList.size()]; for(int indexUploadData = 0; indexUploadData < resultingArrayList.size(); indexUploadData++ ) { resultingArray[indexUploadData] = (byte)resultingArrayList.get(indexUploadData); } return resultingArray; } catch (JCNativeException jcne) { throw translateException(jcne); } } public byte[] UploadData(java.lang.String address, java.lang.String method, byte[] data) throws Throwable, system.ArgumentException, system.NotSupportedException, system.InvalidOperationException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.PlatformNotSupportedException, system.NullReferenceException, system.OutOfMemoryException, system.runtime.interopservices.ExternalException, system.globalization.CultureNotFoundException, system.UriFormatException, system.net.WebException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { ArrayList resultingArrayList = new ArrayList(); JCObject resultingObjects = (JCObject)classInstance.Invoke("UploadData", address, method, data); for (java.lang.Object resultingObject : resultingObjects) { resultingArrayList.add(resultingObject); } byte[] resultingArray = new byte[resultingArrayList.size()]; for(int indexUploadData = 0; indexUploadData < resultingArrayList.size(); indexUploadData++ ) { resultingArray[indexUploadData] = (byte)resultingArrayList.get(indexUploadData); } return resultingArray; } catch (JCNativeException jcne) { throw translateException(jcne); } } public byte[] UploadData(java.lang.String dupParam0, java.lang.String dupParam1, JCORefOut dupParam2) throws Throwable, system.ArgumentException, system.NotSupportedException, system.InvalidOperationException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.PlatformNotSupportedException, system.NullReferenceException, system.OutOfMemoryException, system.runtime.interopservices.ExternalException, system.globalization.CultureNotFoundException, system.UriFormatException, system.net.WebException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { ArrayList resultingArrayList = new ArrayList(); JCObject resultingObjects = (JCObject)classInstance.Invoke("UploadData", dupParam0, dupParam1, dupParam2.getJCRefOut()); for (java.lang.Object resultingObject : resultingObjects) { resultingArrayList.add(resultingObject); } byte[] resultingArray = new byte[resultingArrayList.size()]; for(int indexUploadData = 0; indexUploadData < resultingArrayList.size(); indexUploadData++ ) { resultingArray[indexUploadData] = (byte)resultingArrayList.get(indexUploadData); } return resultingArray; } catch (JCNativeException jcne) { throw translateException(jcne); } } public byte[] UploadData(Uri address, byte[] data) throws Throwable, system.ArgumentException, system.NotSupportedException, system.InvalidOperationException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.PlatformNotSupportedException, system.globalization.CultureNotFoundException, system.IndexOutOfRangeException, system.UriFormatException, system.OutOfMemoryException, system.diagnostics.UnreachableException, system.net.WebException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { ArrayList resultingArrayList = new ArrayList(); JCObject resultingObjects = (JCObject)classInstance.Invoke("UploadData", address == null ? null : address.getJCOInstance(), data); for (java.lang.Object resultingObject : resultingObjects) { resultingArrayList.add(resultingObject); } byte[] resultingArray = new byte[resultingArrayList.size()]; for(int indexUploadData = 0; indexUploadData < resultingArrayList.size(); indexUploadData++ ) { resultingArray[indexUploadData] = (byte)resultingArrayList.get(indexUploadData); } return resultingArray; } catch (JCNativeException jcne) { throw translateException(jcne); } } public byte[] UploadData(Uri dupParam0, JCORefOut dupParam1) throws Throwable, system.ArgumentException, system.NotSupportedException, system.InvalidOperationException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.PlatformNotSupportedException, system.globalization.CultureNotFoundException, system.IndexOutOfRangeException, system.UriFormatException, system.OutOfMemoryException, system.diagnostics.UnreachableException, system.net.WebException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { ArrayList resultingArrayList = new ArrayList(); JCObject resultingObjects = (JCObject)classInstance.Invoke("UploadData", dupParam0 == null ? null : dupParam0.getJCOInstance(), dupParam1.getJCRefOut()); for (java.lang.Object resultingObject : resultingObjects) { resultingArrayList.add(resultingObject); } byte[] resultingArray = new byte[resultingArrayList.size()]; for(int indexUploadData = 0; indexUploadData < resultingArrayList.size(); indexUploadData++ ) { resultingArray[indexUploadData] = (byte)resultingArrayList.get(indexUploadData); } return resultingArray; } catch (JCNativeException jcne) { throw translateException(jcne); } } public byte[] UploadData(Uri address, java.lang.String method, byte[] data) throws Throwable, system.ArgumentException, system.ArgumentOutOfRangeException, system.PlatformNotSupportedException, system.NotSupportedException, system.ObjectDisposedException, system.InvalidOperationException, system.RankException, system.ArrayTypeMismatchException, system.ArgumentNullException, system.NullReferenceException, system.OutOfMemoryException, system.runtime.interopservices.ExternalException, system.globalization.CultureNotFoundException, system.UriFormatException, system.net.WebException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { ArrayList resultingArrayList = new ArrayList(); JCObject resultingObjects = (JCObject)classInstance.Invoke("UploadData", address == null ? null : address.getJCOInstance(), method, data); for (java.lang.Object resultingObject : resultingObjects) { resultingArrayList.add(resultingObject); } byte[] resultingArray = new byte[resultingArrayList.size()]; for(int indexUploadData = 0; indexUploadData < resultingArrayList.size(); indexUploadData++ ) { resultingArray[indexUploadData] = (byte)resultingArrayList.get(indexUploadData); } return resultingArray; } catch (JCNativeException jcne) { throw translateException(jcne); } } public byte[] UploadData(Uri dupParam0, java.lang.String dupParam1, JCORefOut dupParam2) throws Throwable, system.ArgumentException, system.ArgumentOutOfRangeException, system.PlatformNotSupportedException, system.NotSupportedException, system.ObjectDisposedException, system.InvalidOperationException, system.RankException, system.ArrayTypeMismatchException, system.ArgumentNullException, system.NullReferenceException, system.OutOfMemoryException, system.runtime.interopservices.ExternalException, system.globalization.CultureNotFoundException, system.UriFormatException, system.net.WebException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { ArrayList resultingArrayList = new ArrayList(); JCObject resultingObjects = (JCObject)classInstance.Invoke("UploadData", dupParam0 == null ? null : dupParam0.getJCOInstance(), dupParam1, dupParam2.getJCRefOut()); for (java.lang.Object resultingObject : resultingObjects) { resultingArrayList.add(resultingObject); } byte[] resultingArray = new byte[resultingArrayList.size()]; for(int indexUploadData = 0; indexUploadData < resultingArrayList.size(); indexUploadData++ ) { resultingArray[indexUploadData] = (byte)resultingArrayList.get(indexUploadData); } return resultingArray; } catch (JCNativeException jcne) { throw translateException(jcne); } } public byte[] UploadFile(java.lang.String address, java.lang.String method, java.lang.String fileName) throws Throwable, system.ArgumentException, system.NotSupportedException, system.InvalidOperationException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.PlatformNotSupportedException, system.NullReferenceException, system.OutOfMemoryException, system.runtime.interopservices.ExternalException, system.globalization.CultureNotFoundException, system.UriFormatException, system.net.WebException, system.runtime.serialization.SerializationException, system.InvalidTimeZoneException, system.OverflowException, system.FormatException, system.IndexOutOfRangeException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { ArrayList resultingArrayList = new ArrayList(); JCObject resultingObjects = (JCObject)classInstance.Invoke("UploadFile", address, method, fileName); for (java.lang.Object resultingObject : resultingObjects) { resultingArrayList.add(resultingObject); } byte[] resultingArray = new byte[resultingArrayList.size()]; for(int indexUploadFile = 0; indexUploadFile < resultingArrayList.size(); indexUploadFile++ ) { resultingArray[indexUploadFile] = (byte)resultingArrayList.get(indexUploadFile); } return resultingArray; } catch (JCNativeException jcne) { throw translateException(jcne); } } public byte[] UploadFile(java.lang.String address, java.lang.String fileName) throws Throwable, system.ArgumentException, system.NotSupportedException, system.InvalidOperationException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.PlatformNotSupportedException, system.NullReferenceException, system.OutOfMemoryException, system.runtime.interopservices.ExternalException, system.globalization.CultureNotFoundException, system.UriFormatException, system.net.WebException, system.OverflowException, system.FormatException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { ArrayList resultingArrayList = new ArrayList(); JCObject resultingObjects = (JCObject)classInstance.Invoke("UploadFile", address, fileName); for (java.lang.Object resultingObject : resultingObjects) { resultingArrayList.add(resultingObject); } byte[] resultingArray = new byte[resultingArrayList.size()]; for(int indexUploadFile = 0; indexUploadFile < resultingArrayList.size(); indexUploadFile++ ) { resultingArray[indexUploadFile] = (byte)resultingArrayList.get(indexUploadFile); } return resultingArray; } catch (JCNativeException jcne) { throw translateException(jcne); } } public byte[] UploadFile(Uri address, java.lang.String method, java.lang.String fileName) throws Throwable, system.ArgumentException, system.ArgumentOutOfRangeException, system.PlatformNotSupportedException, system.NotSupportedException, system.ObjectDisposedException, system.InvalidOperationException, system.RankException, system.ArrayTypeMismatchException, system.ArgumentNullException, system.NullReferenceException, system.OutOfMemoryException, system.runtime.interopservices.ExternalException, system.globalization.CultureNotFoundException, system.UriFormatException, system.net.WebException, system.runtime.serialization.SerializationException, system.InvalidTimeZoneException, system.OverflowException, system.security.SecurityException, system.FormatException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { ArrayList resultingArrayList = new ArrayList(); JCObject resultingObjects = (JCObject)classInstance.Invoke("UploadFile", address == null ? null : address.getJCOInstance(), method, fileName); for (java.lang.Object resultingObject : resultingObjects) { resultingArrayList.add(resultingObject); } byte[] resultingArray = new byte[resultingArrayList.size()]; for(int indexUploadFile = 0; indexUploadFile < resultingArrayList.size(); indexUploadFile++ ) { resultingArray[indexUploadFile] = (byte)resultingArrayList.get(indexUploadFile); } return resultingArray; } catch (JCNativeException jcne) { throw translateException(jcne); } } public byte[] UploadFile(Uri address, java.lang.String fileName) throws Throwable, system.ArgumentException, system.NotSupportedException, system.InvalidOperationException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.PlatformNotSupportedException, system.globalization.CultureNotFoundException, system.IndexOutOfRangeException, system.UriFormatException, system.OutOfMemoryException, system.diagnostics.UnreachableException, system.net.WebException, system.runtime.serialization.SerializationException, system.InvalidTimeZoneException, system.OverflowException, system.FormatException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { ArrayList resultingArrayList = new ArrayList(); JCObject resultingObjects = (JCObject)classInstance.Invoke("UploadFile", address == null ? null : address.getJCOInstance(), fileName); for (java.lang.Object resultingObject : resultingObjects) { resultingArrayList.add(resultingObject); } byte[] resultingArray = new byte[resultingArrayList.size()]; for(int indexUploadFile = 0; indexUploadFile < resultingArrayList.size(); indexUploadFile++ ) { resultingArray[indexUploadFile] = (byte)resultingArrayList.get(indexUploadFile); } return resultingArray; } catch (JCNativeException jcne) { throw translateException(jcne); } } public byte[] UploadValues(java.lang.String address, NameValueCollection data) throws Throwable, system.ArgumentException, system.NotSupportedException, system.InvalidOperationException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.PlatformNotSupportedException, system.NullReferenceException, system.OutOfMemoryException, system.runtime.interopservices.ExternalException, system.globalization.CultureNotFoundException, system.UriFormatException, system.net.WebException, system.IndexOutOfRangeException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { ArrayList resultingArrayList = new ArrayList(); JCObject resultingObjects = (JCObject)classInstance.Invoke("UploadValues", address, data == null ? null : data.getJCOInstance()); for (java.lang.Object resultingObject : resultingObjects) { resultingArrayList.add(resultingObject); } byte[] resultingArray = new byte[resultingArrayList.size()]; for(int indexUploadValues = 0; indexUploadValues < resultingArrayList.size(); indexUploadValues++ ) { resultingArray[indexUploadValues] = (byte)resultingArrayList.get(indexUploadValues); } return resultingArray; } catch (JCNativeException jcne) { throw translateException(jcne); } } public byte[] UploadValues(java.lang.String address, java.lang.String method, NameValueCollection data) throws Throwable, system.ArgumentException, system.NotSupportedException, system.InvalidOperationException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.PlatformNotSupportedException, system.NullReferenceException, system.OutOfMemoryException, system.runtime.interopservices.ExternalException, system.globalization.CultureNotFoundException, system.UriFormatException, system.net.WebException, system.IndexOutOfRangeException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { ArrayList resultingArrayList = new ArrayList(); JCObject resultingObjects = (JCObject)classInstance.Invoke("UploadValues", address, method, data == null ? null : data.getJCOInstance()); for (java.lang.Object resultingObject : resultingObjects) { resultingArrayList.add(resultingObject); } byte[] resultingArray = new byte[resultingArrayList.size()]; for(int indexUploadValues = 0; indexUploadValues < resultingArrayList.size(); indexUploadValues++ ) { resultingArray[indexUploadValues] = (byte)resultingArrayList.get(indexUploadValues); } return resultingArray; } catch (JCNativeException jcne) { throw translateException(jcne); } } public byte[] UploadValues(Uri address, NameValueCollection data) throws Throwable, system.ArgumentException, system.NotSupportedException, system.InvalidOperationException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.PlatformNotSupportedException, system.globalization.CultureNotFoundException, system.IndexOutOfRangeException, system.UriFormatException, system.OutOfMemoryException, system.diagnostics.UnreachableException, system.net.WebException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { ArrayList resultingArrayList = new ArrayList(); JCObject resultingObjects = (JCObject)classInstance.Invoke("UploadValues", address == null ? null : address.getJCOInstance(), data == null ? null : data.getJCOInstance()); for (java.lang.Object resultingObject : resultingObjects) { resultingArrayList.add(resultingObject); } byte[] resultingArray = new byte[resultingArrayList.size()]; for(int indexUploadValues = 0; indexUploadValues < resultingArrayList.size(); indexUploadValues++ ) { resultingArray[indexUploadValues] = (byte)resultingArrayList.get(indexUploadValues); } return resultingArray; } catch (JCNativeException jcne) { throw translateException(jcne); } } public byte[] UploadValues(Uri address, java.lang.String method, NameValueCollection data) throws Throwable, system.ArgumentException, system.ArgumentOutOfRangeException, system.PlatformNotSupportedException, system.NotSupportedException, system.ObjectDisposedException, system.InvalidOperationException, system.RankException, system.ArrayTypeMismatchException, system.ArgumentNullException, system.NullReferenceException, system.OutOfMemoryException, system.runtime.interopservices.ExternalException, system.globalization.CultureNotFoundException, system.UriFormatException, system.net.WebException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { ArrayList resultingArrayList = new ArrayList(); JCObject resultingObjects = (JCObject)classInstance.Invoke("UploadValues", address == null ? null : address.getJCOInstance(), method, data == null ? null : data.getJCOInstance()); for (java.lang.Object resultingObject : resultingObjects) { resultingArrayList.add(resultingObject); } byte[] resultingArray = new byte[resultingArrayList.size()]; for(int indexUploadValues = 0; indexUploadValues < resultingArrayList.size(); indexUploadValues++ ) { resultingArray[indexUploadValues] = (byte)resultingArrayList.get(indexUploadValues); } return resultingArray; } catch (JCNativeException jcne) { throw translateException(jcne); } } public Stream OpenRead(java.lang.String address) throws Throwable, system.ArgumentException, system.NotSupportedException, system.InvalidOperationException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.PlatformNotSupportedException, system.NullReferenceException, system.OutOfMemoryException, system.runtime.interopservices.ExternalException, system.globalization.CultureNotFoundException, system.UriFormatException, system.net.WebException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { JCObject objOpenRead = (JCObject)classInstance.Invoke("OpenRead", address); return new Stream(objOpenRead); } catch (JCNativeException jcne) { throw translateException(jcne); } } public Stream OpenRead(Uri address) throws Throwable, system.ArgumentException, system.ArgumentOutOfRangeException, system.PlatformNotSupportedException, system.NotSupportedException, system.ObjectDisposedException, system.InvalidOperationException, system.RankException, system.ArrayTypeMismatchException, system.ArgumentNullException, system.NullReferenceException, system.OutOfMemoryException, system.runtime.interopservices.ExternalException, system.globalization.CultureNotFoundException, system.UriFormatException, system.net.WebException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { JCObject objOpenRead = (JCObject)classInstance.Invoke("OpenRead", address == null ? null : address.getJCOInstance()); return new Stream(objOpenRead); } catch (JCNativeException jcne) { throw translateException(jcne); } } public Stream OpenWrite(java.lang.String address, java.lang.String method) throws Throwable, system.ArgumentException, system.NotSupportedException, system.InvalidOperationException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.PlatformNotSupportedException, system.NullReferenceException, system.OutOfMemoryException, system.runtime.interopservices.ExternalException, system.globalization.CultureNotFoundException, system.UriFormatException, system.net.WebException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { JCObject objOpenWrite = (JCObject)classInstance.Invoke("OpenWrite", address, method); return new Stream(objOpenWrite); } catch (JCNativeException jcne) { throw translateException(jcne); } } public Stream OpenWrite(java.lang.String address) throws Throwable, system.ArgumentException, system.NotSupportedException, system.InvalidOperationException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.PlatformNotSupportedException, system.NullReferenceException, system.OutOfMemoryException, system.runtime.interopservices.ExternalException, system.globalization.CultureNotFoundException, system.UriFormatException, system.net.WebException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { JCObject objOpenWrite = (JCObject)classInstance.Invoke("OpenWrite", address); return new Stream(objOpenWrite); } catch (JCNativeException jcne) { throw translateException(jcne); } } public Stream OpenWrite(Uri address, java.lang.String method) throws Throwable, system.ArgumentException, system.ArgumentOutOfRangeException, system.PlatformNotSupportedException, system.NotSupportedException, system.ObjectDisposedException, system.InvalidOperationException, system.RankException, system.ArrayTypeMismatchException, system.ArgumentNullException, system.NullReferenceException, system.OutOfMemoryException, system.runtime.interopservices.ExternalException, system.globalization.CultureNotFoundException, system.UriFormatException, system.net.WebException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { JCObject objOpenWrite = (JCObject)classInstance.Invoke("OpenWrite", address == null ? null : address.getJCOInstance(), method); return new Stream(objOpenWrite); } catch (JCNativeException jcne) { throw translateException(jcne); } } public Stream OpenWrite(Uri address) throws Throwable, system.ArgumentException, system.NotSupportedException, system.InvalidOperationException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.PlatformNotSupportedException, system.globalization.CultureNotFoundException, system.IndexOutOfRangeException, system.UriFormatException, system.OutOfMemoryException, system.diagnostics.UnreachableException, system.net.WebException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { JCObject objOpenWrite = (JCObject)classInstance.Invoke("OpenWrite", address == null ? null : address.getJCOInstance()); return new Stream(objOpenWrite); } catch (JCNativeException jcne) { throw translateException(jcne); } } public java.lang.String DownloadString(java.lang.String address) throws Throwable, system.ArgumentException, system.NotSupportedException, system.InvalidOperationException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.PlatformNotSupportedException, system.NullReferenceException, system.OutOfMemoryException, system.runtime.interopservices.ExternalException, system.globalization.CultureNotFoundException, system.UriFormatException, system.net.WebException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { return (java.lang.String)classInstance.Invoke("DownloadString", address); } catch (JCNativeException jcne) { throw translateException(jcne); } } public java.lang.String DownloadString(Uri address) throws Throwable, system.ArgumentException, system.ArgumentOutOfRangeException, system.PlatformNotSupportedException, system.NotSupportedException, system.ObjectDisposedException, system.InvalidOperationException, system.RankException, system.ArrayTypeMismatchException, system.ArgumentNullException, system.globalization.CultureNotFoundException, system.IndexOutOfRangeException, system.UriFormatException, system.OutOfMemoryException, system.diagnostics.UnreachableException, system.net.WebException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { return (java.lang.String)classInstance.Invoke("DownloadString", address == null ? null : address.getJCOInstance()); } catch (JCNativeException jcne) { throw translateException(jcne); } } public java.lang.String UploadString(java.lang.String address, java.lang.String method, java.lang.String data) throws Throwable, system.ArgumentException, system.NotSupportedException, system.InvalidOperationException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.PlatformNotSupportedException, system.NullReferenceException, system.OutOfMemoryException, system.runtime.interopservices.ExternalException, system.globalization.CultureNotFoundException, system.UriFormatException, system.net.WebException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { return (java.lang.String)classInstance.Invoke("UploadString", address, method, data); } catch (JCNativeException jcne) { throw translateException(jcne); } } public java.lang.String UploadString(java.lang.String address, java.lang.String data) throws Throwable, system.ArgumentException, system.NotSupportedException, system.InvalidOperationException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.PlatformNotSupportedException, system.NullReferenceException, system.OutOfMemoryException, system.runtime.interopservices.ExternalException, system.globalization.CultureNotFoundException, system.UriFormatException, system.net.WebException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { return (java.lang.String)classInstance.Invoke("UploadString", address, data); } catch (JCNativeException jcne) { throw translateException(jcne); } } public java.lang.String UploadString(Uri address, java.lang.String method, java.lang.String data) throws Throwable, system.ArgumentException, system.ArgumentOutOfRangeException, system.PlatformNotSupportedException, system.NotSupportedException, system.ObjectDisposedException, system.InvalidOperationException, system.RankException, system.ArrayTypeMismatchException, system.ArgumentNullException, system.NullReferenceException, system.OutOfMemoryException, system.runtime.interopservices.ExternalException, system.globalization.CultureNotFoundException, system.UriFormatException, system.net.WebException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { return (java.lang.String)classInstance.Invoke("UploadString", address == null ? null : address.getJCOInstance(), method, data); } catch (JCNativeException jcne) { throw translateException(jcne); } } public java.lang.String UploadString(Uri address, java.lang.String data) throws Throwable, system.ArgumentException, system.NotSupportedException, system.InvalidOperationException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.PlatformNotSupportedException, system.globalization.CultureNotFoundException, system.IndexOutOfRangeException, system.UriFormatException, system.OutOfMemoryException, system.diagnostics.UnreachableException, system.net.WebException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { return (java.lang.String)classInstance.Invoke("UploadString", address == null ? null : address.getJCOInstance(), data); } catch (JCNativeException jcne) { throw translateException(jcne); } } public Task DownloadFileTaskAsync(java.lang.String address, java.lang.String fileName) throws Throwable, system.ArgumentException, system.NotSupportedException, system.InvalidOperationException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.PlatformNotSupportedException, system.NullReferenceException, system.OutOfMemoryException, system.runtime.interopservices.ExternalException, system.globalization.CultureNotFoundException, system.UriFormatException, system.MulticastNotSupportedException, system.runtime.serialization.SerializationException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { JCObject objDownloadFileTaskAsync = (JCObject)classInstance.Invoke("DownloadFileTaskAsync", address, fileName); return new Task(objDownloadFileTaskAsync); } catch (JCNativeException jcne) { throw translateException(jcne); } } public Task DownloadFileTaskAsync(Uri address, java.lang.String fileName) throws Throwable, system.ArgumentOutOfRangeException, system.PlatformNotSupportedException, system.NotSupportedException, system.ArgumentException, system.ArgumentNullException, system.IndexOutOfRangeException, system.MulticastNotSupportedException, system.runtime.serialization.SerializationException, system.InvalidOperationException, system.UriFormatException, system.diagnostics.UnreachableException, system.OutOfMemoryException, system.RankException, system.ArrayTypeMismatchException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { JCObject objDownloadFileTaskAsync = (JCObject)classInstance.Invoke("DownloadFileTaskAsync", address == null ? null : address.getJCOInstance(), fileName); return new Task(objDownloadFileTaskAsync); } catch (JCNativeException jcne) { throw translateException(jcne); } } public void CancelAsync() throws Throwable, system.ArgumentNullException, system.ArgumentException, system.PlatformNotSupportedException, system.ArgumentOutOfRangeException, system.globalization.CultureNotFoundException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.Invoke("CancelAsync"); } catch (JCNativeException jcne) { throw translateException(jcne); } } public void DownloadDataAsync(Uri address, NetObject userToken) throws Throwable, system.ArgumentException, system.ArgumentOutOfRangeException, system.PlatformNotSupportedException, system.NotSupportedException, system.ObjectDisposedException, system.InvalidOperationException, system.RankException, system.ArrayTypeMismatchException, system.ArgumentNullException, system.NullReferenceException, system.OutOfMemoryException, system.runtime.interopservices.ExternalException, system.globalization.CultureNotFoundException, system.UriFormatException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.Invoke("DownloadDataAsync", address == null ? null : address.getJCOInstance(), userToken == null ? null : userToken.getJCOInstance()); } catch (JCNativeException jcne) { throw translateException(jcne); } } public void DownloadDataAsync(Uri address) throws Throwable, system.ArgumentException, system.NotSupportedException, system.InvalidOperationException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.PlatformNotSupportedException, system.globalization.CultureNotFoundException, system.IndexOutOfRangeException, system.UriFormatException, system.OutOfMemoryException, system.diagnostics.UnreachableException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.Invoke("DownloadDataAsync", address == null ? null : address.getJCOInstance()); } catch (JCNativeException jcne) { throw translateException(jcne); } } public void DownloadFile(java.lang.String address, java.lang.String fileName) throws Throwable, system.ArgumentException, system.NotSupportedException, system.InvalidOperationException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.PlatformNotSupportedException, system.NullReferenceException, system.OutOfMemoryException, system.runtime.interopservices.ExternalException, system.globalization.CultureNotFoundException, system.UriFormatException, system.runtime.serialization.SerializationException, system.net.WebException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.Invoke("DownloadFile", address, fileName); } catch (JCNativeException jcne) { throw translateException(jcne); } } public void DownloadFile(Uri address, java.lang.String fileName) throws Throwable, system.ArgumentException, system.ArgumentOutOfRangeException, system.PlatformNotSupportedException, system.NotSupportedException, system.ObjectDisposedException, system.InvalidOperationException, system.RankException, system.ArrayTypeMismatchException, system.ArgumentNullException, system.OutOfMemoryException, system.runtime.serialization.SerializationException, system.NullReferenceException, system.runtime.interopservices.ExternalException, system.globalization.CultureNotFoundException, system.UriFormatException, system.net.WebException, system.FormatException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.Invoke("DownloadFile", address == null ? null : address.getJCOInstance(), fileName); } catch (JCNativeException jcne) { throw translateException(jcne); } } public void DownloadFileAsync(Uri address, java.lang.String fileName, NetObject userToken) throws Throwable, system.ArgumentException, system.ArgumentOutOfRangeException, system.PlatformNotSupportedException, system.NotSupportedException, system.ObjectDisposedException, system.InvalidOperationException, system.RankException, system.ArrayTypeMismatchException, system.ArgumentNullException, system.OutOfMemoryException, system.runtime.serialization.SerializationException, system.NullReferenceException, system.runtime.interopservices.ExternalException, system.globalization.CultureNotFoundException, system.UriFormatException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.Invoke("DownloadFileAsync", address == null ? null : address.getJCOInstance(), fileName, userToken == null ? null : userToken.getJCOInstance()); } catch (JCNativeException jcne) { throw translateException(jcne); } } public void DownloadFileAsync(Uri address, java.lang.String fileName) throws Throwable, system.ArgumentException, system.NotSupportedException, system.InvalidOperationException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.PlatformNotSupportedException, system.runtime.serialization.SerializationException, system.globalization.CultureNotFoundException, system.IndexOutOfRangeException, system.UriFormatException, system.diagnostics.UnreachableException, system.OutOfMemoryException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.Invoke("DownloadFileAsync", address == null ? null : address.getJCOInstance(), fileName); } catch (JCNativeException jcne) { throw translateException(jcne); } } public void DownloadStringAsync(Uri address, NetObject userToken) throws Throwable, system.ArgumentException, system.ArgumentOutOfRangeException, system.PlatformNotSupportedException, system.NotSupportedException, system.ObjectDisposedException, system.InvalidOperationException, system.RankException, system.ArrayTypeMismatchException, system.ArgumentNullException, system.NullReferenceException, system.OutOfMemoryException, system.runtime.interopservices.ExternalException, system.globalization.CultureNotFoundException, system.UriFormatException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.Invoke("DownloadStringAsync", address == null ? null : address.getJCOInstance(), userToken == null ? null : userToken.getJCOInstance()); } catch (JCNativeException jcne) { throw translateException(jcne); } } public void DownloadStringAsync(Uri address) throws Throwable, system.ArgumentException, system.NotSupportedException, system.InvalidOperationException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.PlatformNotSupportedException, system.globalization.CultureNotFoundException, system.IndexOutOfRangeException, system.UriFormatException, system.OutOfMemoryException, system.diagnostics.UnreachableException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.Invoke("DownloadStringAsync", address == null ? null : address.getJCOInstance()); } catch (JCNativeException jcne) { throw translateException(jcne); } } public void OpenReadAsync(Uri address, NetObject userToken) throws Throwable, system.ArgumentException, system.ArgumentOutOfRangeException, system.PlatformNotSupportedException, system.NotSupportedException, system.ObjectDisposedException, system.InvalidOperationException, system.RankException, system.ArrayTypeMismatchException, system.ArgumentNullException, system.NullReferenceException, system.OutOfMemoryException, system.runtime.interopservices.ExternalException, system.globalization.CultureNotFoundException, system.UriFormatException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.Invoke("OpenReadAsync", address == null ? null : address.getJCOInstance(), userToken == null ? null : userToken.getJCOInstance()); } catch (JCNativeException jcne) { throw translateException(jcne); } } public void OpenReadAsync(Uri address) throws Throwable, system.ArgumentException, system.NotSupportedException, system.InvalidOperationException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.PlatformNotSupportedException, system.globalization.CultureNotFoundException, system.IndexOutOfRangeException, system.UriFormatException, system.OutOfMemoryException, system.diagnostics.UnreachableException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.Invoke("OpenReadAsync", address == null ? null : address.getJCOInstance()); } catch (JCNativeException jcne) { throw translateException(jcne); } } public void OpenWriteAsync(Uri address, java.lang.String method, NetObject userToken) throws Throwable, system.ArgumentException, system.ArgumentOutOfRangeException, system.PlatformNotSupportedException, system.NotSupportedException, system.ObjectDisposedException, system.InvalidOperationException, system.RankException, system.ArrayTypeMismatchException, system.ArgumentNullException, system.NullReferenceException, system.OutOfMemoryException, system.runtime.interopservices.ExternalException, system.globalization.CultureNotFoundException, system.UriFormatException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.Invoke("OpenWriteAsync", address == null ? null : address.getJCOInstance(), method, userToken == null ? null : userToken.getJCOInstance()); } catch (JCNativeException jcne) { throw translateException(jcne); } } public void OpenWriteAsync(Uri address, java.lang.String method) throws Throwable, system.ArgumentException, system.NotSupportedException, system.InvalidOperationException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.PlatformNotSupportedException, system.globalization.CultureNotFoundException, system.IndexOutOfRangeException, system.UriFormatException, system.OutOfMemoryException, system.diagnostics.UnreachableException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.Invoke("OpenWriteAsync", address == null ? null : address.getJCOInstance(), method); } catch (JCNativeException jcne) { throw translateException(jcne); } } public void OpenWriteAsync(Uri address) throws Throwable, system.ArgumentException, system.NotSupportedException, system.InvalidOperationException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.PlatformNotSupportedException, system.globalization.CultureNotFoundException, system.IndexOutOfRangeException, system.UriFormatException, system.OutOfMemoryException, system.diagnostics.UnreachableException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.Invoke("OpenWriteAsync", address == null ? null : address.getJCOInstance()); } catch (JCNativeException jcne) { throw translateException(jcne); } } public void UploadDataAsync(Uri address, byte[] data) throws Throwable, system.ArgumentException, system.NotSupportedException, system.InvalidOperationException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.PlatformNotSupportedException, system.globalization.CultureNotFoundException, system.IndexOutOfRangeException, system.UriFormatException, system.OutOfMemoryException, system.diagnostics.UnreachableException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.Invoke("UploadDataAsync", address == null ? null : address.getJCOInstance(), data); } catch (JCNativeException jcne) { throw translateException(jcne); } } public void UploadDataAsync(Uri dupParam0, JCORefOut dupParam1) throws Throwable, system.ArgumentException, system.NotSupportedException, system.InvalidOperationException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.PlatformNotSupportedException, system.globalization.CultureNotFoundException, system.IndexOutOfRangeException, system.UriFormatException, system.OutOfMemoryException, system.diagnostics.UnreachableException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.Invoke("UploadDataAsync", dupParam0 == null ? null : dupParam0.getJCOInstance(), dupParam1.getJCRefOut()); } catch (JCNativeException jcne) { throw translateException(jcne); } } public void UploadDataAsync(Uri address, java.lang.String method, byte[] data, NetObject userToken) throws Throwable, system.ArgumentException, system.ArgumentOutOfRangeException, system.PlatformNotSupportedException, system.NotSupportedException, system.ObjectDisposedException, system.InvalidOperationException, system.RankException, system.ArrayTypeMismatchException, system.ArgumentNullException, system.NullReferenceException, system.OutOfMemoryException, system.runtime.interopservices.ExternalException, system.globalization.CultureNotFoundException, system.UriFormatException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.Invoke("UploadDataAsync", address == null ? null : address.getJCOInstance(), method, data, userToken == null ? null : userToken.getJCOInstance()); } catch (JCNativeException jcne) { throw translateException(jcne); } } public void UploadDataAsync(Uri dupParam0, java.lang.String dupParam1, JCORefOut dupParam2, NetObject dupParam3) throws Throwable, system.ArgumentException, system.ArgumentOutOfRangeException, system.PlatformNotSupportedException, system.NotSupportedException, system.ObjectDisposedException, system.InvalidOperationException, system.RankException, system.ArrayTypeMismatchException, system.ArgumentNullException, system.NullReferenceException, system.OutOfMemoryException, system.runtime.interopservices.ExternalException, system.globalization.CultureNotFoundException, system.UriFormatException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.Invoke("UploadDataAsync", dupParam0 == null ? null : dupParam0.getJCOInstance(), dupParam1, dupParam2.getJCRefOut(), dupParam3 == null ? null : dupParam3.getJCOInstance()); } catch (JCNativeException jcne) { throw translateException(jcne); } } public void UploadDataAsync(Uri address, java.lang.String method, byte[] data) throws Throwable, system.ArgumentException, system.NotSupportedException, system.InvalidOperationException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.PlatformNotSupportedException, system.globalization.CultureNotFoundException, system.IndexOutOfRangeException, system.UriFormatException, system.OutOfMemoryException, system.diagnostics.UnreachableException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.Invoke("UploadDataAsync", address == null ? null : address.getJCOInstance(), method, data); } catch (JCNativeException jcne) { throw translateException(jcne); } } public void UploadDataAsync(Uri dupParam0, java.lang.String dupParam1, JCORefOut dupParam2) throws Throwable, system.ArgumentException, system.NotSupportedException, system.InvalidOperationException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.PlatformNotSupportedException, system.globalization.CultureNotFoundException, system.IndexOutOfRangeException, system.UriFormatException, system.OutOfMemoryException, system.diagnostics.UnreachableException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.Invoke("UploadDataAsync", dupParam0 == null ? null : dupParam0.getJCOInstance(), dupParam1, dupParam2.getJCRefOut()); } catch (JCNativeException jcne) { throw translateException(jcne); } } public void UploadFileAsync(Uri address, java.lang.String method, java.lang.String fileName, NetObject userToken) throws Throwable, system.ArgumentException, system.ArgumentOutOfRangeException, system.PlatformNotSupportedException, system.NotSupportedException, system.ObjectDisposedException, system.InvalidOperationException, system.RankException, system.ArrayTypeMismatchException, system.ArgumentNullException, system.NullReferenceException, system.OutOfMemoryException, system.runtime.interopservices.ExternalException, system.globalization.CultureNotFoundException, system.UriFormatException, system.net.WebException, system.runtime.serialization.SerializationException, system.InvalidTimeZoneException, system.OverflowException, system.security.SecurityException, system.FormatException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.Invoke("UploadFileAsync", address == null ? null : address.getJCOInstance(), method, fileName, userToken == null ? null : userToken.getJCOInstance()); } catch (JCNativeException jcne) { throw translateException(jcne); } } public void UploadFileAsync(Uri address, java.lang.String method, java.lang.String fileName) throws Throwable, system.ArgumentException, system.NotSupportedException, system.InvalidOperationException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.PlatformNotSupportedException, system.globalization.CultureNotFoundException, system.IndexOutOfRangeException, system.UriFormatException, system.OutOfMemoryException, system.diagnostics.UnreachableException, system.net.WebException, system.runtime.serialization.SerializationException, system.InvalidTimeZoneException, system.OverflowException, system.FormatException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.Invoke("UploadFileAsync", address == null ? null : address.getJCOInstance(), method, fileName); } catch (JCNativeException jcne) { throw translateException(jcne); } } public void UploadFileAsync(Uri address, java.lang.String fileName) throws Throwable, system.ArgumentException, system.NotSupportedException, system.InvalidOperationException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.PlatformNotSupportedException, system.globalization.CultureNotFoundException, system.IndexOutOfRangeException, system.UriFormatException, system.OutOfMemoryException, system.diagnostics.UnreachableException, system.net.WebException, system.runtime.serialization.SerializationException, system.InvalidTimeZoneException, system.OverflowException, system.FormatException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.Invoke("UploadFileAsync", address == null ? null : address.getJCOInstance(), fileName); } catch (JCNativeException jcne) { throw translateException(jcne); } } public void UploadStringAsync(Uri address, java.lang.String method, java.lang.String data, NetObject userToken) throws Throwable, system.ArgumentException, system.ArgumentOutOfRangeException, system.PlatformNotSupportedException, system.NotSupportedException, system.ObjectDisposedException, system.InvalidOperationException, system.RankException, system.ArrayTypeMismatchException, system.ArgumentNullException, system.NullReferenceException, system.OutOfMemoryException, system.runtime.interopservices.ExternalException, system.globalization.CultureNotFoundException, system.UriFormatException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.Invoke("UploadStringAsync", address == null ? null : address.getJCOInstance(), method, data, userToken == null ? null : userToken.getJCOInstance()); } catch (JCNativeException jcne) { throw translateException(jcne); } } public void UploadStringAsync(Uri address, java.lang.String method, java.lang.String data) throws Throwable, system.ArgumentException, system.NotSupportedException, system.InvalidOperationException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.PlatformNotSupportedException, system.globalization.CultureNotFoundException, system.IndexOutOfRangeException, system.UriFormatException, system.OutOfMemoryException, system.diagnostics.UnreachableException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.Invoke("UploadStringAsync", address == null ? null : address.getJCOInstance(), method, data); } catch (JCNativeException jcne) { throw translateException(jcne); } } public void UploadStringAsync(Uri address, java.lang.String data) throws Throwable, system.ArgumentException, system.NotSupportedException, system.InvalidOperationException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.PlatformNotSupportedException, system.globalization.CultureNotFoundException, system.IndexOutOfRangeException, system.UriFormatException, system.OutOfMemoryException, system.diagnostics.UnreachableException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.Invoke("UploadStringAsync", address == null ? null : address.getJCOInstance(), data); } catch (JCNativeException jcne) { throw translateException(jcne); } } public void UploadValuesAsync(Uri address, NameValueCollection data) throws Throwable, system.ArgumentException, system.NotSupportedException, system.InvalidOperationException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.PlatformNotSupportedException, system.globalization.CultureNotFoundException, system.IndexOutOfRangeException, system.UriFormatException, system.OutOfMemoryException, system.diagnostics.UnreachableException, system.net.WebException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.Invoke("UploadValuesAsync", address == null ? null : address.getJCOInstance(), data == null ? null : data.getJCOInstance()); } catch (JCNativeException jcne) { throw translateException(jcne); } } public void UploadValuesAsync(Uri address, java.lang.String method, NameValueCollection data, NetObject userToken) throws Throwable, system.ArgumentException, system.ArgumentOutOfRangeException, system.PlatformNotSupportedException, system.NotSupportedException, system.ObjectDisposedException, system.InvalidOperationException, system.RankException, system.ArrayTypeMismatchException, system.ArgumentNullException, system.NullReferenceException, system.OutOfMemoryException, system.runtime.interopservices.ExternalException, system.globalization.CultureNotFoundException, system.UriFormatException, system.net.WebException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.Invoke("UploadValuesAsync", address == null ? null : address.getJCOInstance(), method, data == null ? null : data.getJCOInstance(), userToken == null ? null : userToken.getJCOInstance()); } catch (JCNativeException jcne) { throw translateException(jcne); } } public void UploadValuesAsync(Uri address, java.lang.String method, NameValueCollection data) throws Throwable, system.ArgumentException, system.NotSupportedException, system.InvalidOperationException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.PlatformNotSupportedException, system.globalization.CultureNotFoundException, system.IndexOutOfRangeException, system.UriFormatException, system.OutOfMemoryException, system.diagnostics.UnreachableException, system.net.WebException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.Invoke("UploadValuesAsync", address == null ? null : address.getJCOInstance(), method, data == null ? null : data.getJCOInstance()); } catch (JCNativeException jcne) { throw translateException(jcne); } } // Properties section public boolean getAllowReadStreamBuffering() throws Throwable { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { return (boolean)classInstance.Get("AllowReadStreamBuffering"); } catch (JCNativeException jcne) { throw translateException(jcne); } } public void setAllowReadStreamBuffering(boolean AllowReadStreamBuffering) throws Throwable { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.Set("AllowReadStreamBuffering", AllowReadStreamBuffering); } catch (JCNativeException jcne) { throw translateException(jcne); } } public boolean getAllowWriteStreamBuffering() throws Throwable { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { return (boolean)classInstance.Get("AllowWriteStreamBuffering"); } catch (JCNativeException jcne) { throw translateException(jcne); } } public void setAllowWriteStreamBuffering(boolean AllowWriteStreamBuffering) throws Throwable { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.Set("AllowWriteStreamBuffering", AllowWriteStreamBuffering); } catch (JCNativeException jcne) { throw translateException(jcne); } } public boolean getIsBusy() throws Throwable, system.ArgumentException, system.ArgumentOutOfRangeException, system.PlatformNotSupportedException, system.NotSupportedException, system.ObjectDisposedException, system.InvalidOperationException, system.RankException, system.ArrayTypeMismatchException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { return (boolean)classInstance.Get("IsBusy"); } catch (JCNativeException jcne) { throw translateException(jcne); } } public boolean getUseDefaultCredentials() throws Throwable { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { return (boolean)classInstance.Get("UseDefaultCredentials"); } catch (JCNativeException jcne) { throw translateException(jcne); } } public void setUseDefaultCredentials(boolean UseDefaultCredentials) throws Throwable { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.Set("UseDefaultCredentials", UseDefaultCredentials); } catch (JCNativeException jcne) { throw translateException(jcne); } } public NameValueCollection getQueryString() throws Throwable, system.ArgumentOutOfRangeException, system.ArgumentException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { JCObject val = (JCObject)classInstance.Get("QueryString"); return new NameValueCollection(val); } catch (JCNativeException jcne) { throw translateException(jcne); } } public void setQueryString(NameValueCollection QueryString) throws Throwable { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.Set("QueryString", QueryString == null ? null : QueryString.getJCOInstance()); } catch (JCNativeException jcne) { throw translateException(jcne); } } public RequestCachePolicy getCachePolicy() throws Throwable { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { JCObject val = (JCObject)classInstance.Get("CachePolicy"); return new RequestCachePolicy(val); } catch (JCNativeException jcne) { throw translateException(jcne); } } public void setCachePolicy(RequestCachePolicy CachePolicy) throws Throwable { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.Set("CachePolicy", CachePolicy == null ? null : CachePolicy.getJCOInstance()); } catch (JCNativeException jcne) { throw translateException(jcne); } } public ICredentials getCredentials() throws Throwable { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { JCObject val = (JCObject)classInstance.Get("Credentials"); return new ICredentialsImplementation(val); } catch (JCNativeException jcne) { throw translateException(jcne); } } public void setCredentials(ICredentials Credentials) throws Throwable { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.Set("Credentials", Credentials == null ? null : Credentials.getJCOInstance()); } catch (JCNativeException jcne) { throw translateException(jcne); } } public IWebProxy getProxy() throws Throwable, system.InvalidOperationException, system.PlatformNotSupportedException, system.NullReferenceException, system.NotSupportedException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { JCObject val = (JCObject)classInstance.Get("Proxy"); return new IWebProxyImplementation(val); } catch (JCNativeException jcne) { throw translateException(jcne); } } public void setProxy(IWebProxy Proxy) throws Throwable { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.Set("Proxy", Proxy == null ? null : Proxy.getJCOInstance()); } catch (JCNativeException jcne) { throw translateException(jcne); } } public WebHeaderCollection getHeaders() throws Throwable, system.ArgumentOutOfRangeException, system.ArgumentException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { JCObject val = (JCObject)classInstance.Get("Headers"); return new WebHeaderCollection(val); } catch (JCNativeException jcne) { throw translateException(jcne); } } public void setHeaders(WebHeaderCollection Headers) throws Throwable { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.Set("Headers", Headers == null ? null : Headers.getJCOInstance()); } catch (JCNativeException jcne) { throw translateException(jcne); } } public WebHeaderCollection getResponseHeaders() throws Throwable, system.ArgumentNullException, system.ArgumentException, system.PlatformNotSupportedException, system.ArgumentOutOfRangeException, system.globalization.CultureNotFoundException, system.NotSupportedException, system.InvalidOperationException, system.ObjectDisposedException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { JCObject val = (JCObject)classInstance.Get("ResponseHeaders"); return new WebHeaderCollection(val); } catch (JCNativeException jcne) { throw translateException(jcne); } } public java.lang.String getBaseAddress() throws Throwable, system.PlatformNotSupportedException, system.NotSupportedException, system.ArgumentException, system.globalization.CultureNotFoundException, system.NullReferenceException, system.OutOfMemoryException, system.runtime.interopservices.ExternalException, system.ArgumentNullException, system.ArgumentOutOfRangeException, system.InvalidOperationException, system.UriFormatException, system.diagnostics.UnreachableException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { return (java.lang.String)classInstance.Get("BaseAddress"); } catch (JCNativeException jcne) { throw translateException(jcne); } } public void setBaseAddress(java.lang.String BaseAddress) throws Throwable, system.ArgumentException, system.NotSupportedException, system.InvalidOperationException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.PlatformNotSupportedException, system.IndexOutOfRangeException, system.FormatException, system.NullReferenceException, system.OutOfMemoryException, system.runtime.interopservices.ExternalException, system.globalization.CultureNotFoundException, system.diagnostics.UnreachableException, system.UriFormatException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.Set("BaseAddress", BaseAddress); } catch (JCNativeException jcne) { throw translateException(jcne); } } public Encoding getEncoding() throws Throwable { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { JCObject val = (JCObject)classInstance.Get("Encoding"); return new Encoding(val); } catch (JCNativeException jcne) { throw translateException(jcne); } } public void setEncoding(Encoding Encoding) throws Throwable, system.ArgumentException, system.ArgumentOutOfRangeException, system.PlatformNotSupportedException, system.NotSupportedException, system.ObjectDisposedException, system.InvalidOperationException, system.RankException, system.ArrayTypeMismatchException, system.ArgumentNullException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.Set("Encoding", Encoding == null ? null : Encoding.getJCOInstance()); } catch (JCNativeException jcne) { throw translateException(jcne); } } // Instance Events section public void addDownloadFileCompleted(AsyncCompletedEventHandler handler) throws Throwable { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.RegisterEventListener("DownloadFileCompleted", handler); } catch (JCNativeException jcne) { throw translateException(jcne); } } public void removeDownloadFileCompleted(AsyncCompletedEventHandler handler) throws Throwable { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.UnregisterEventListener("DownloadFileCompleted", handler); } catch (JCNativeException jcne) { throw translateException(jcne); } } public void addDownloadDataCompleted(DownloadDataCompletedEventHandler handler) throws Throwable { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.RegisterEventListener("DownloadDataCompleted", handler); } catch (JCNativeException jcne) { throw translateException(jcne); } } public void removeDownloadDataCompleted(DownloadDataCompletedEventHandler handler) throws Throwable { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.UnregisterEventListener("DownloadDataCompleted", handler); } catch (JCNativeException jcne) { throw translateException(jcne); } } public void addDownloadProgressChanged(DownloadProgressChangedEventHandler handler) throws Throwable { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.RegisterEventListener("DownloadProgressChanged", handler); } catch (JCNativeException jcne) { throw translateException(jcne); } } public void removeDownloadProgressChanged(DownloadProgressChangedEventHandler handler) throws Throwable { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.UnregisterEventListener("DownloadProgressChanged", handler); } catch (JCNativeException jcne) { throw translateException(jcne); } } public void addDownloadStringCompleted(DownloadStringCompletedEventHandler handler) throws Throwable { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.RegisterEventListener("DownloadStringCompleted", handler); } catch (JCNativeException jcne) { throw translateException(jcne); } } public void removeDownloadStringCompleted(DownloadStringCompletedEventHandler handler) throws Throwable { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.UnregisterEventListener("DownloadStringCompleted", handler); } catch (JCNativeException jcne) { throw translateException(jcne); } } public void addOpenReadCompleted(OpenReadCompletedEventHandler handler) throws Throwable { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.RegisterEventListener("OpenReadCompleted", handler); } catch (JCNativeException jcne) { throw translateException(jcne); } } public void removeOpenReadCompleted(OpenReadCompletedEventHandler handler) throws Throwable { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.UnregisterEventListener("OpenReadCompleted", handler); } catch (JCNativeException jcne) { throw translateException(jcne); } } public void addOpenWriteCompleted(OpenWriteCompletedEventHandler handler) throws Throwable { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.RegisterEventListener("OpenWriteCompleted", handler); } catch (JCNativeException jcne) { throw translateException(jcne); } } public void removeOpenWriteCompleted(OpenWriteCompletedEventHandler handler) throws Throwable { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.UnregisterEventListener("OpenWriteCompleted", handler); } catch (JCNativeException jcne) { throw translateException(jcne); } } public void addUploadDataCompleted(UploadDataCompletedEventHandler handler) throws Throwable { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.RegisterEventListener("UploadDataCompleted", handler); } catch (JCNativeException jcne) { throw translateException(jcne); } } public void removeUploadDataCompleted(UploadDataCompletedEventHandler handler) throws Throwable { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.UnregisterEventListener("UploadDataCompleted", handler); } catch (JCNativeException jcne) { throw translateException(jcne); } } public void addUploadFileCompleted(UploadFileCompletedEventHandler handler) throws Throwable { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.RegisterEventListener("UploadFileCompleted", handler); } catch (JCNativeException jcne) { throw translateException(jcne); } } public void removeUploadFileCompleted(UploadFileCompletedEventHandler handler) throws Throwable { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.UnregisterEventListener("UploadFileCompleted", handler); } catch (JCNativeException jcne) { throw translateException(jcne); } } public void addUploadProgressChanged(UploadProgressChangedEventHandler handler) throws Throwable { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.RegisterEventListener("UploadProgressChanged", handler); } catch (JCNativeException jcne) { throw translateException(jcne); } } public void removeUploadProgressChanged(UploadProgressChangedEventHandler handler) throws Throwable { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.UnregisterEventListener("UploadProgressChanged", handler); } catch (JCNativeException jcne) { throw translateException(jcne); } } public void addUploadStringCompleted(UploadStringCompletedEventHandler handler) throws Throwable { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.RegisterEventListener("UploadStringCompleted", handler); } catch (JCNativeException jcne) { throw translateException(jcne); } } public void removeUploadStringCompleted(UploadStringCompletedEventHandler handler) throws Throwable { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.UnregisterEventListener("UploadStringCompleted", handler); } catch (JCNativeException jcne) { throw translateException(jcne); } } public void addUploadValuesCompleted(UploadValuesCompletedEventHandler handler) throws Throwable { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.RegisterEventListener("UploadValuesCompleted", handler); } catch (JCNativeException jcne) { throw translateException(jcne); } } public void removeUploadValuesCompleted(UploadValuesCompletedEventHandler handler) throws Throwable { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.UnregisterEventListener("UploadValuesCompleted", handler); } catch (JCNativeException jcne) { throw translateException(jcne); } } public void addWriteStreamClosed(WriteStreamClosedEventHandler handler) throws Throwable { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.RegisterEventListener("WriteStreamClosed", handler); } catch (JCNativeException jcne) { throw translateException(jcne); } } public void removeWriteStreamClosed(WriteStreamClosedEventHandler handler) throws Throwable { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.UnregisterEventListener("WriteStreamClosed", handler); } catch (JCNativeException jcne) { throw translateException(jcne); } } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy