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

system.Console Maven / Gradle / Ivy

/*
 *  MIT License
 *
 *  Copyright (c) 2023 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
 * 
 *      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;

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

// Import section
import system.ConsoleKeyInfo;
import system.io.Stream;
import system.ConsoleColor;
import system.io.TextWriter;
import system.io.TextReader;
import system.Single;
import system.Decimal;
import system.UInt32;
import system.UInt64;
import system.text.Encoding;


/**
 * The base .NET class managing System.Console, System.Console, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a.
 * 

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

* * Powered by JCOBridge: more info at https://www.jcobridge.com * * @author MASES s.r.l https://masesgroup.com * @version 1.13.0.0 */ public class Console extends NetObject { /** * Fully assembly qualified name: System.Console, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a */ public static final String assemblyFullName = "System.Console, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"; /** * Assembly name: System.Console */ public static final String assemblyShortName = "System.Console"; /** * Qualified class name: System.Console */ public static final String className = "System.Console"; 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 Console(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 Console}, a cast assert is made to check if types are compatible. * @param from {@link IJCOBridgeReflected} instance to be casted * @return {@link Console} instance * @throws java.lang.Throwable in case of error during cast operation */ public static Console cast(IJCOBridgeReflected from) throws Throwable { NetType.AssertCast(classType, from); return new Console(from.getJCOInstance()); } // Constructors section public Console() throws Throwable { } // Methods section public static int Read() throws Throwable, system.ArgumentException, system.PlatformNotSupportedException, system.NotSupportedException, system.InvalidOperationException, system.ArgumentOutOfRangeException, system.ArgumentNullException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { return (int)classType.Invoke("Read"); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static ConsoleKeyInfo ReadKey() throws Throwable, system.ArgumentOutOfRangeException, system.IndexOutOfRangeException, system.PlatformNotSupportedException, system.NotSupportedException, system.ArgumentException, system.ObjectDisposedException, system.InvalidOperationException, system.RankException, system.ArrayTypeMismatchException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { JCObject objReadKey = (JCObject)classType.Invoke("ReadKey"); return new ConsoleKeyInfo(objReadKey); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static ConsoleKeyInfo ReadKey(boolean intercept) throws Throwable, system.ArgumentOutOfRangeException, system.IndexOutOfRangeException, system.PlatformNotSupportedException, system.NotSupportedException, system.ArgumentException, system.ObjectDisposedException, system.InvalidOperationException, system.RankException, system.ArrayTypeMismatchException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { JCObject objReadKey = (JCObject)classType.Invoke("ReadKey", intercept); return new ConsoleKeyInfo(objReadKey); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static Stream OpenStandardError() throws Throwable, system.NotSupportedException, system.ArgumentException, system.PlatformNotSupportedException, system.ArgumentNullException, system.FormatException, system.ArgumentOutOfRangeException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { JCObject objOpenStandardError = (JCObject)classType.Invoke("OpenStandardError"); return new Stream(objOpenStandardError); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static Stream OpenStandardError(int bufferSize) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.ArgumentOutOfRangeException, system.globalization.CultureNotFoundException, system.PlatformNotSupportedException, system.ObjectDisposedException, system.InvalidOperationException, system.NotSupportedException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { JCObject objOpenStandardError = (JCObject)classType.Invoke("OpenStandardError", bufferSize); return new Stream(objOpenStandardError); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static Stream OpenStandardInput() throws Throwable, system.NotSupportedException, system.ArgumentException, system.PlatformNotSupportedException, system.ArgumentNullException, system.FormatException, system.ArgumentOutOfRangeException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { JCObject objOpenStandardInput = (JCObject)classType.Invoke("OpenStandardInput"); return new Stream(objOpenStandardInput); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static Stream OpenStandardInput(int bufferSize) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.ArgumentOutOfRangeException, system.globalization.CultureNotFoundException, system.PlatformNotSupportedException, system.ObjectDisposedException, system.InvalidOperationException, system.NotSupportedException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { JCObject objOpenStandardInput = (JCObject)classType.Invoke("OpenStandardInput", bufferSize); return new Stream(objOpenStandardInput); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static Stream OpenStandardOutput() throws Throwable, system.NotSupportedException, system.ArgumentException, system.PlatformNotSupportedException, system.ArgumentNullException, system.FormatException, system.ArgumentOutOfRangeException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { JCObject objOpenStandardOutput = (JCObject)classType.Invoke("OpenStandardOutput"); return new Stream(objOpenStandardOutput); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static Stream OpenStandardOutput(int bufferSize) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.ArgumentOutOfRangeException, system.globalization.CultureNotFoundException, system.PlatformNotSupportedException, system.ObjectDisposedException, system.InvalidOperationException, system.NotSupportedException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { JCObject objOpenStandardOutput = (JCObject)classType.Invoke("OpenStandardOutput", bufferSize); return new Stream(objOpenStandardOutput); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static java.lang.String ReadLine() throws Throwable, system.ArgumentException, system.PlatformNotSupportedException, system.NotSupportedException, system.InvalidOperationException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.OutOfMemoryException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { return (java.lang.String)classType.Invoke("ReadLine"); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static void Beep() throws Throwable { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { classType.Invoke("Beep"); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static void Beep(int frequency, int duration) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.ArgumentOutOfRangeException, system.globalization.CultureNotFoundException, system.InvalidOperationException, system.PlatformNotSupportedException, system.ObjectDisposedException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { classType.Invoke("Beep", frequency, duration); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static void Clear() throws Throwable, system.ArgumentNullException, system.ArgumentException, system.ArgumentOutOfRangeException, system.globalization.CultureNotFoundException, system.InvalidOperationException, system.PlatformNotSupportedException, system.ObjectDisposedException, system.io.IOException, system.IndexOutOfRangeException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { classType.Invoke("Clear"); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static void MoveBufferArea(int sourceLeft, int sourceTop, int sourceWidth, int sourceHeight, int targetLeft, int targetTop, char sourceChar, ConsoleColor sourceForeColor, ConsoleColor sourceBackColor) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.ArgumentOutOfRangeException, system.globalization.CultureNotFoundException, system.InvalidOperationException, system.PlatformNotSupportedException, system.ObjectDisposedException, system.io.IOException, system.IndexOutOfRangeException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { classType.Invoke("MoveBufferArea", sourceLeft, sourceTop, sourceWidth, sourceHeight, targetLeft, targetTop, sourceChar, sourceForeColor == null ? null : sourceForeColor.getJCOInstance(), sourceBackColor == null ? null : sourceBackColor.getJCOInstance()); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static void MoveBufferArea(int sourceLeft, int sourceTop, int sourceWidth, int sourceHeight, int targetLeft, int targetTop) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.ObjectDisposedException, system.InvalidOperationException, system.io.IOException, system.PlatformNotSupportedException, system.ArgumentOutOfRangeException, system.FormatException, system.IndexOutOfRangeException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { classType.Invoke("MoveBufferArea", sourceLeft, sourceTop, sourceWidth, sourceHeight, targetLeft, targetTop); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static void ResetColor() throws Throwable, system.ArgumentNullException, system.ArgumentException, system.globalization.CultureNotFoundException, system.io.IOException, system.PlatformNotSupportedException, system.InvalidOperationException, system.ArgumentOutOfRangeException, system.IndexOutOfRangeException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { classType.Invoke("ResetColor"); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static void SetBufferSize(int width, int height) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.ObjectDisposedException, system.InvalidOperationException, system.io.IOException, system.PlatformNotSupportedException, system.ArgumentOutOfRangeException, system.FormatException, system.IndexOutOfRangeException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { classType.Invoke("SetBufferSize", width, height); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static void SetCursorPosition(int left, int top) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.ArgumentOutOfRangeException, system.globalization.CultureNotFoundException, system.PlatformNotSupportedException, system.ObjectDisposedException, system.InvalidOperationException, system.io.IOException, system.IndexOutOfRangeException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { classType.Invoke("SetCursorPosition", left, top); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static void SetError(TextWriter newError) throws Throwable, system.ArgumentException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.InvalidOperationException, system.PlatformNotSupportedException, system.ArrayTypeMismatchException, system.IndexOutOfRangeException, system.NotSupportedException, system.ObjectDisposedException, system.RankException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { classType.Invoke("SetError", newError == null ? null : newError.getJCOInstance()); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static void SetIn(TextReader newIn) throws Throwable, system.ArgumentException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.InvalidOperationException, system.PlatformNotSupportedException, system.ArrayTypeMismatchException, system.IndexOutOfRangeException, system.NotSupportedException, system.ObjectDisposedException, system.RankException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { classType.Invoke("SetIn", newIn == null ? null : newIn.getJCOInstance()); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static void SetOut(TextWriter newOut) throws Throwable, system.ArgumentException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.InvalidOperationException, system.PlatformNotSupportedException, system.ArrayTypeMismatchException, system.IndexOutOfRangeException, system.NotSupportedException, system.ObjectDisposedException, system.RankException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { classType.Invoke("SetOut", newOut == null ? null : newOut.getJCOInstance()); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static void SetWindowPosition(int left, int top) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.ObjectDisposedException, system.InvalidOperationException, system.io.IOException, system.PlatformNotSupportedException, system.ArgumentOutOfRangeException, system.FormatException, system.IndexOutOfRangeException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { classType.Invoke("SetWindowPosition", left, top); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static void SetWindowSize(int width, int height) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.ArgumentOutOfRangeException, system.globalization.CultureNotFoundException, system.InvalidOperationException, system.PlatformNotSupportedException, system.ObjectDisposedException, system.io.IOException, system.IndexOutOfRangeException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { classType.Invoke("SetWindowSize", width, height); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static void Write(boolean value) throws Throwable, system.ArgumentException, system.PlatformNotSupportedException, system.NotSupportedException, system.InvalidOperationException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.ObjectDisposedException, system.ArrayTypeMismatchException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { classType.Invoke("Write", value); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static void Write(char value) throws Throwable, system.ArgumentException, system.PlatformNotSupportedException, system.NotSupportedException, system.InvalidOperationException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.ObjectDisposedException, system.ArrayTypeMismatchException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { classType.Invoke("Write", value); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static void Write(char[] buffer, int index, int count) throws Throwable, system.ArgumentException, system.PlatformNotSupportedException, system.NotSupportedException, system.InvalidOperationException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.ObjectDisposedException, system.ArrayTypeMismatchException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { classType.Invoke("Write", buffer, index, count); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static void Write(JCORefOut dupParam0, int dupParam1, int dupParam2) throws Throwable, system.ArgumentException, system.PlatformNotSupportedException, system.NotSupportedException, system.InvalidOperationException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.ObjectDisposedException, system.ArrayTypeMismatchException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { classType.Invoke("Write", dupParam0.getJCRefOut(), dupParam1, dupParam2); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static void Write(char[] buffer) throws Throwable, system.ArgumentException, system.PlatformNotSupportedException, system.NotSupportedException, system.InvalidOperationException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.ObjectDisposedException, system.ArrayTypeMismatchException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { classType.Invoke("Write", (java.lang.Object)buffer); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static void Write(JCORefOut dupParam0) throws Throwable, system.ArgumentException, system.PlatformNotSupportedException, system.NotSupportedException, system.InvalidOperationException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.ObjectDisposedException, system.ArrayTypeMismatchException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { classType.Invoke("Write", (java.lang.Object)dupParam0.getJCRefOut()); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static void Write(double value) throws Throwable, system.ArgumentException, system.PlatformNotSupportedException, system.NotSupportedException, system.InvalidOperationException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.ObjectDisposedException, system.ArrayTypeMismatchException, system.globalization.CultureNotFoundException, system.FormatException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { classType.Invoke("Write", value); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static void Write(int value) throws Throwable, system.ArgumentException, system.PlatformNotSupportedException, system.NotSupportedException, system.InvalidOperationException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.ObjectDisposedException, system.ArrayTypeMismatchException, system.globalization.CultureNotFoundException, system.FormatException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { classType.Invoke("Write", value); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static void Write(long value) throws Throwable, system.ArgumentException, system.PlatformNotSupportedException, system.NotSupportedException, system.InvalidOperationException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.ObjectDisposedException, system.ArrayTypeMismatchException, system.globalization.CultureNotFoundException, system.FormatException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { classType.Invoke("Write", value); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static void Write(Single value) throws Throwable, system.ArgumentException, system.PlatformNotSupportedException, system.NotSupportedException, system.InvalidOperationException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.ObjectDisposedException, system.ArrayTypeMismatchException, system.globalization.CultureNotFoundException, system.FormatException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { classType.Invoke("Write", value == null ? null : value.getJCOInstance()); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static void Write(Decimal value) throws Throwable, system.ArgumentException, system.PlatformNotSupportedException, system.NotSupportedException, system.InvalidOperationException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.ObjectDisposedException, system.ArrayTypeMismatchException, system.globalization.CultureNotFoundException, system.FormatException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { classType.Invoke("Write", value == null ? null : value.getJCOInstance()); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static void Write(NetObject value) throws Throwable, system.ArgumentException, system.PlatformNotSupportedException, system.NotSupportedException, system.InvalidOperationException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.ObjectDisposedException, system.ArrayTypeMismatchException, system.globalization.CultureNotFoundException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { classType.Invoke("Write", value == null ? null : value.getJCOInstance()); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static void Write(java.lang.String format, NetObject arg0, NetObject arg1, NetObject arg2) throws Throwable, system.ArgumentException, system.PlatformNotSupportedException, system.NotSupportedException, system.InvalidOperationException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.ObjectDisposedException, system.ArrayTypeMismatchException, system.globalization.CultureNotFoundException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { classType.Invoke("Write", format, arg0 == null ? null : arg0.getJCOInstance(), arg1 == null ? null : arg1.getJCOInstance(), arg2 == null ? null : arg2.getJCOInstance()); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static void Write(java.lang.String format, NetObject arg0, NetObject arg1) throws Throwable, system.ArgumentException, system.PlatformNotSupportedException, system.NotSupportedException, system.InvalidOperationException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.ObjectDisposedException, system.ArrayTypeMismatchException, system.globalization.CultureNotFoundException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { classType.Invoke("Write", format, arg0 == null ? null : arg0.getJCOInstance(), arg1 == null ? null : arg1.getJCOInstance()); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static void Write(java.lang.String format, NetObject arg0) throws Throwable, system.ArgumentException, system.PlatformNotSupportedException, system.NotSupportedException, system.InvalidOperationException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.ObjectDisposedException, system.ArrayTypeMismatchException, system.globalization.CultureNotFoundException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { classType.Invoke("Write", format, arg0 == null ? null : arg0.getJCOInstance()); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static void Write(java.lang.String format, NetObject... arg) throws Throwable, system.ArgumentException, system.PlatformNotSupportedException, system.NotSupportedException, system.InvalidOperationException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.ObjectDisposedException, system.ArrayTypeMismatchException, system.globalization.CultureNotFoundException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { classType.Invoke("Write", format, toObjectFromArray(arg)); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static void Write(java.lang.String value) throws Throwable, system.ArgumentException, system.PlatformNotSupportedException, system.NotSupportedException, system.InvalidOperationException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.ObjectDisposedException, system.ArrayTypeMismatchException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { classType.Invoke("Write", value); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static void Write(UInt32 value) throws Throwable, system.ArgumentException, system.PlatformNotSupportedException, system.NotSupportedException, system.InvalidOperationException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.ObjectDisposedException, system.ArrayTypeMismatchException, system.globalization.CultureNotFoundException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { classType.Invoke("Write", value == null ? null : value.getJCOInstance()); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static void Write(UInt64 value) throws Throwable, system.ArgumentException, system.PlatformNotSupportedException, system.NotSupportedException, system.InvalidOperationException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.ObjectDisposedException, system.ArrayTypeMismatchException, system.globalization.CultureNotFoundException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { classType.Invoke("Write", value == null ? null : value.getJCOInstance()); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static void WriteLine() throws Throwable, system.ArgumentException, system.PlatformNotSupportedException, system.NotSupportedException, system.InvalidOperationException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.ObjectDisposedException, system.ArrayTypeMismatchException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { classType.Invoke("WriteLine"); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static void WriteLine(boolean value) throws Throwable, system.ArgumentException, system.PlatformNotSupportedException, system.NotSupportedException, system.InvalidOperationException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.ObjectDisposedException, system.ArrayTypeMismatchException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { classType.Invoke("WriteLine", value); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static void WriteLine(char value) throws Throwable, system.ArgumentException, system.PlatformNotSupportedException, system.NotSupportedException, system.InvalidOperationException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.ObjectDisposedException, system.ArrayTypeMismatchException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { classType.Invoke("WriteLine", value); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static void WriteLine(char[] buffer, int index, int count) throws Throwable, system.ArgumentException, system.PlatformNotSupportedException, system.NotSupportedException, system.InvalidOperationException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.ObjectDisposedException, system.ArrayTypeMismatchException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { classType.Invoke("WriteLine", buffer, index, count); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static void WriteLine(JCORefOut dupParam0, int dupParam1, int dupParam2) throws Throwable, system.ArgumentException, system.PlatformNotSupportedException, system.NotSupportedException, system.InvalidOperationException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.ObjectDisposedException, system.ArrayTypeMismatchException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { classType.Invoke("WriteLine", dupParam0.getJCRefOut(), dupParam1, dupParam2); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static void WriteLine(char[] buffer) throws Throwable, system.ArgumentException, system.PlatformNotSupportedException, system.NotSupportedException, system.InvalidOperationException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.ObjectDisposedException, system.ArrayTypeMismatchException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { classType.Invoke("WriteLine", (java.lang.Object)buffer); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static void WriteLine(JCORefOut dupParam0) throws Throwable, system.ArgumentException, system.PlatformNotSupportedException, system.NotSupportedException, system.InvalidOperationException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.ObjectDisposedException, system.ArrayTypeMismatchException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { classType.Invoke("WriteLine", (java.lang.Object)dupParam0.getJCRefOut()); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static void WriteLine(double value) throws Throwable, system.ArgumentException, system.PlatformNotSupportedException, system.NotSupportedException, system.InvalidOperationException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.ObjectDisposedException, system.ArrayTypeMismatchException, system.globalization.CultureNotFoundException, system.FormatException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { classType.Invoke("WriteLine", value); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static void WriteLine(int value) throws Throwable, system.ArgumentException, system.PlatformNotSupportedException, system.NotSupportedException, system.InvalidOperationException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.ObjectDisposedException, system.ArrayTypeMismatchException, system.globalization.CultureNotFoundException, system.FormatException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { classType.Invoke("WriteLine", value); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static void WriteLine(long value) throws Throwable, system.ArgumentException, system.PlatformNotSupportedException, system.NotSupportedException, system.InvalidOperationException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.ObjectDisposedException, system.ArrayTypeMismatchException, system.globalization.CultureNotFoundException, system.FormatException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { classType.Invoke("WriteLine", value); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static void WriteLine(Single value) throws Throwable, system.ArgumentException, system.PlatformNotSupportedException, system.NotSupportedException, system.InvalidOperationException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.ObjectDisposedException, system.ArrayTypeMismatchException, system.globalization.CultureNotFoundException, system.FormatException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { classType.Invoke("WriteLine", value == null ? null : value.getJCOInstance()); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static void WriteLine(Decimal value) throws Throwable, system.ArgumentException, system.PlatformNotSupportedException, system.NotSupportedException, system.InvalidOperationException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.ObjectDisposedException, system.ArrayTypeMismatchException, system.globalization.CultureNotFoundException, system.FormatException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { classType.Invoke("WriteLine", value == null ? null : value.getJCOInstance()); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static void WriteLine(NetObject value) throws Throwable, system.ArgumentException, system.PlatformNotSupportedException, system.NotSupportedException, system.InvalidOperationException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.ObjectDisposedException, system.ArrayTypeMismatchException, system.globalization.CultureNotFoundException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { classType.Invoke("WriteLine", value == null ? null : value.getJCOInstance()); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static void WriteLine(java.lang.String format, NetObject arg0, NetObject arg1, NetObject arg2) throws Throwable, system.ArgumentException, system.PlatformNotSupportedException, system.NotSupportedException, system.InvalidOperationException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.ObjectDisposedException, system.ArrayTypeMismatchException, system.globalization.CultureNotFoundException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { classType.Invoke("WriteLine", format, arg0 == null ? null : arg0.getJCOInstance(), arg1 == null ? null : arg1.getJCOInstance(), arg2 == null ? null : arg2.getJCOInstance()); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static void WriteLine(java.lang.String format, NetObject arg0, NetObject arg1) throws Throwable, system.ArgumentException, system.PlatformNotSupportedException, system.NotSupportedException, system.InvalidOperationException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.ObjectDisposedException, system.ArrayTypeMismatchException, system.globalization.CultureNotFoundException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { classType.Invoke("WriteLine", format, arg0 == null ? null : arg0.getJCOInstance(), arg1 == null ? null : arg1.getJCOInstance()); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static void WriteLine(java.lang.String format, NetObject arg0) throws Throwable, system.ArgumentException, system.PlatformNotSupportedException, system.NotSupportedException, system.InvalidOperationException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.ObjectDisposedException, system.ArrayTypeMismatchException, system.globalization.CultureNotFoundException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { classType.Invoke("WriteLine", format, arg0 == null ? null : arg0.getJCOInstance()); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static void WriteLine(java.lang.String format, NetObject... arg) throws Throwable, system.ArgumentException, system.PlatformNotSupportedException, system.NotSupportedException, system.InvalidOperationException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.ObjectDisposedException, system.ArrayTypeMismatchException, system.globalization.CultureNotFoundException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { classType.Invoke("WriteLine", format, toObjectFromArray(arg)); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static void WriteLine(java.lang.String value) throws Throwable, system.ArgumentException, system.PlatformNotSupportedException, system.NotSupportedException, system.InvalidOperationException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.ObjectDisposedException, system.ArrayTypeMismatchException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { classType.Invoke("WriteLine", value); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static void WriteLine(UInt32 value) throws Throwable, system.ArgumentException, system.PlatformNotSupportedException, system.NotSupportedException, system.InvalidOperationException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.ObjectDisposedException, system.ArrayTypeMismatchException, system.globalization.CultureNotFoundException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { classType.Invoke("WriteLine", value == null ? null : value.getJCOInstance()); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static void WriteLine(UInt64 value) throws Throwable, system.ArgumentException, system.PlatformNotSupportedException, system.NotSupportedException, system.InvalidOperationException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.ObjectDisposedException, system.ArrayTypeMismatchException, system.globalization.CultureNotFoundException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { classType.Invoke("WriteLine", value == null ? null : value.getJCOInstance()); } catch (JCNativeException jcne) { throw translateException(jcne); } } // Properties section public static boolean getCapsLock() throws Throwable, system.ArgumentException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.InvalidOperationException, system.PlatformNotSupportedException, system.ArrayTypeMismatchException, system.IndexOutOfRangeException, system.NotSupportedException, system.ObjectDisposedException, system.RankException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { return (boolean)classType.Get("CapsLock"); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static boolean getCursorVisible() throws Throwable, system.ArgumentException, system.PlatformNotSupportedException, system.NotSupportedException, system.InvalidOperationException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.FormatException, system.IndexOutOfRangeException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { return (boolean)classType.Get("CursorVisible"); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static void setCursorVisible(boolean CursorVisible) throws Throwable, system.ArgumentException, system.PlatformNotSupportedException, system.NotSupportedException, system.InvalidOperationException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.FormatException, system.IndexOutOfRangeException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { classType.Set("CursorVisible", CursorVisible); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static boolean getIsErrorRedirected() throws Throwable, system.ArgumentException, system.ArgumentOutOfRangeException, system.IndexOutOfRangeException, system.PlatformNotSupportedException, system.NotSupportedException, system.ObjectDisposedException, system.InvalidOperationException, system.RankException, system.ArrayTypeMismatchException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { return (boolean)classType.Get("IsErrorRedirected"); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static boolean getIsInputRedirected() throws Throwable, system.ArgumentException, system.ArgumentOutOfRangeException, system.IndexOutOfRangeException, system.PlatformNotSupportedException, system.NotSupportedException, system.ObjectDisposedException, system.InvalidOperationException, system.RankException, system.ArrayTypeMismatchException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { return (boolean)classType.Get("IsInputRedirected"); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static boolean getIsOutputRedirected() throws Throwable, system.ArgumentException, system.ArgumentOutOfRangeException, system.IndexOutOfRangeException, system.PlatformNotSupportedException, system.NotSupportedException, system.ObjectDisposedException, system.InvalidOperationException, system.RankException, system.ArrayTypeMismatchException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { return (boolean)classType.Get("IsOutputRedirected"); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static boolean getKeyAvailable() throws Throwable, system.ArgumentException, system.PlatformNotSupportedException, system.NotSupportedException, system.InvalidOperationException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.FormatException, system.IndexOutOfRangeException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { return (boolean)classType.Get("KeyAvailable"); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static boolean getNumberLock() throws Throwable, system.ArgumentException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.InvalidOperationException, system.PlatformNotSupportedException, system.ArrayTypeMismatchException, system.IndexOutOfRangeException, system.NotSupportedException, system.ObjectDisposedException, system.RankException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { return (boolean)classType.Get("NumberLock"); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static boolean getTreatControlCAsInput() throws Throwable, system.ArgumentNullException, system.ArgumentException, system.ArgumentOutOfRangeException, system.globalization.CultureNotFoundException, system.InvalidOperationException, system.PlatformNotSupportedException, system.ObjectDisposedException, system.io.IOException, system.IndexOutOfRangeException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { return (boolean)classType.Get("TreatControlCAsInput"); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static void setTreatControlCAsInput(boolean TreatControlCAsInput) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.ArgumentOutOfRangeException, system.globalization.CultureNotFoundException, system.InvalidOperationException, system.PlatformNotSupportedException, system.ObjectDisposedException, system.io.IOException, system.IndexOutOfRangeException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { classType.Set("TreatControlCAsInput", TreatControlCAsInput); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static int getBufferHeight() throws Throwable, system.ArgumentNullException, system.ArgumentException, system.ObjectDisposedException, system.InvalidOperationException, system.io.IOException, system.PlatformNotSupportedException, system.ArgumentOutOfRangeException, system.FormatException, system.IndexOutOfRangeException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { return (int)classType.Get("BufferHeight"); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static void setBufferHeight(int BufferHeight) throws Throwable, system.ArgumentException, system.InvalidOperationException, system.io.IOException, system.PlatformNotSupportedException, system.ArgumentNullException, system.FormatException, system.IndexOutOfRangeException, system.ArgumentOutOfRangeException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { classType.Set("BufferHeight", BufferHeight); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static int getBufferWidth() throws Throwable, system.ArgumentNullException, system.ArgumentException, system.ObjectDisposedException, system.InvalidOperationException, system.io.IOException, system.PlatformNotSupportedException, system.ArgumentOutOfRangeException, system.FormatException, system.IndexOutOfRangeException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { return (int)classType.Get("BufferWidth"); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static void setBufferWidth(int BufferWidth) throws Throwable, system.ArgumentException, system.InvalidOperationException, system.io.IOException, system.PlatformNotSupportedException, system.ArgumentNullException, system.FormatException, system.IndexOutOfRangeException, system.ArgumentOutOfRangeException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { classType.Set("BufferWidth", BufferWidth); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static int getCursorLeft() throws Throwable, system.ArgumentNullException, system.ArgumentException, system.ObjectDisposedException, system.InvalidOperationException, system.io.IOException, system.PlatformNotSupportedException, system.ArgumentOutOfRangeException, system.FormatException, system.IndexOutOfRangeException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { return (int)classType.Get("CursorLeft"); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static void setCursorLeft(int CursorLeft) throws Throwable, system.ArgumentException, system.InvalidOperationException, system.io.IOException, system.PlatformNotSupportedException, system.ArgumentNullException, system.FormatException, system.IndexOutOfRangeException, system.ArgumentOutOfRangeException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { classType.Set("CursorLeft", CursorLeft); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static int getCursorSize() throws Throwable, system.ArgumentException, system.PlatformNotSupportedException, system.NotSupportedException, system.InvalidOperationException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.FormatException, system.IndexOutOfRangeException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { return (int)classType.Get("CursorSize"); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static void setCursorSize(int CursorSize) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.ArgumentOutOfRangeException, system.globalization.CultureNotFoundException, system.InvalidOperationException, system.PlatformNotSupportedException, system.ObjectDisposedException, system.IndexOutOfRangeException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { classType.Set("CursorSize", CursorSize); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static int getCursorTop() throws Throwable, system.ArgumentNullException, system.ArgumentException, system.ObjectDisposedException, system.InvalidOperationException, system.io.IOException, system.PlatformNotSupportedException, system.ArgumentOutOfRangeException, system.FormatException, system.IndexOutOfRangeException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { return (int)classType.Get("CursorTop"); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static void setCursorTop(int CursorTop) throws Throwable, system.ArgumentException, system.InvalidOperationException, system.io.IOException, system.PlatformNotSupportedException, system.ArgumentNullException, system.FormatException, system.IndexOutOfRangeException, system.ArgumentOutOfRangeException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { classType.Set("CursorTop", CursorTop); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static int getLargestWindowHeight() throws Throwable { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { return (int)classType.Get("LargestWindowHeight"); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static int getLargestWindowWidth() throws Throwable { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { return (int)classType.Get("LargestWindowWidth"); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static int getWindowHeight() throws Throwable, system.ArgumentNullException, system.ArgumentException, system.ObjectDisposedException, system.InvalidOperationException, system.io.IOException, system.PlatformNotSupportedException, system.ArgumentOutOfRangeException, system.FormatException, system.IndexOutOfRangeException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { return (int)classType.Get("WindowHeight"); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static void setWindowHeight(int WindowHeight) throws Throwable, system.ArgumentException, system.InvalidOperationException, system.io.IOException, system.PlatformNotSupportedException, system.ArgumentNullException, system.FormatException, system.IndexOutOfRangeException, system.ArgumentOutOfRangeException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { classType.Set("WindowHeight", WindowHeight); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static int getWindowLeft() throws Throwable, system.ArgumentNullException, system.ArgumentException, system.ObjectDisposedException, system.InvalidOperationException, system.io.IOException, system.PlatformNotSupportedException, system.ArgumentOutOfRangeException, system.FormatException, system.IndexOutOfRangeException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { return (int)classType.Get("WindowLeft"); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static void setWindowLeft(int WindowLeft) throws Throwable, system.ArgumentException, system.InvalidOperationException, system.io.IOException, system.PlatformNotSupportedException, system.ArgumentNullException, system.FormatException, system.IndexOutOfRangeException, system.ArgumentOutOfRangeException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { classType.Set("WindowLeft", WindowLeft); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static int getWindowTop() throws Throwable, system.ArgumentNullException, system.ArgumentException, system.ObjectDisposedException, system.InvalidOperationException, system.io.IOException, system.PlatformNotSupportedException, system.ArgumentOutOfRangeException, system.FormatException, system.IndexOutOfRangeException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { return (int)classType.Get("WindowTop"); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static void setWindowTop(int WindowTop) throws Throwable, system.ArgumentException, system.InvalidOperationException, system.io.IOException, system.PlatformNotSupportedException, system.ArgumentNullException, system.FormatException, system.IndexOutOfRangeException, system.ArgumentOutOfRangeException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { classType.Set("WindowTop", WindowTop); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static int getWindowWidth() throws Throwable, system.ArgumentNullException, system.ArgumentException, system.ObjectDisposedException, system.InvalidOperationException, system.io.IOException, system.PlatformNotSupportedException, system.ArgumentOutOfRangeException, system.FormatException, system.IndexOutOfRangeException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { return (int)classType.Get("WindowWidth"); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static void setWindowWidth(int WindowWidth) throws Throwable, system.ArgumentException, system.InvalidOperationException, system.io.IOException, system.PlatformNotSupportedException, system.ArgumentNullException, system.FormatException, system.IndexOutOfRangeException, system.ArgumentOutOfRangeException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { classType.Set("WindowWidth", WindowWidth); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static ConsoleColor getBackgroundColor() throws Throwable, system.ArgumentNullException, system.ArgumentException, system.globalization.CultureNotFoundException, system.io.IOException, system.PlatformNotSupportedException, system.InvalidOperationException, system.ArgumentOutOfRangeException, system.IndexOutOfRangeException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { JCObject val = (JCObject)classType.Get("BackgroundColor"); return new ConsoleColor(val); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static void setBackgroundColor(ConsoleColor BackgroundColor) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.globalization.CultureNotFoundException, system.io.IOException, system.PlatformNotSupportedException, system.InvalidOperationException, system.ArgumentOutOfRangeException, system.IndexOutOfRangeException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { classType.Set("BackgroundColor", BackgroundColor == null ? null : BackgroundColor.getJCOInstance()); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static ConsoleColor getForegroundColor() throws Throwable, system.ArgumentNullException, system.ArgumentException, system.globalization.CultureNotFoundException, system.io.IOException, system.PlatformNotSupportedException, system.InvalidOperationException, system.ArgumentOutOfRangeException, system.IndexOutOfRangeException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { JCObject val = (JCObject)classType.Get("ForegroundColor"); return new ConsoleColor(val); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static void setForegroundColor(ConsoleColor ForegroundColor) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.globalization.CultureNotFoundException, system.io.IOException, system.PlatformNotSupportedException, system.InvalidOperationException, system.ArgumentOutOfRangeException, system.IndexOutOfRangeException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { classType.Set("ForegroundColor", ForegroundColor == null ? null : ForegroundColor.getJCOInstance()); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static TextReader getIn() throws Throwable, system.ArgumentException, system.ArgumentOutOfRangeException, system.IndexOutOfRangeException, system.PlatformNotSupportedException, system.NotSupportedException, system.ObjectDisposedException, system.InvalidOperationException, system.RankException, system.ArrayTypeMismatchException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { JCObject val = (JCObject)classType.Get("In"); return new TextReader(val); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static TextWriter getError() throws Throwable, system.ArgumentException, system.ArgumentOutOfRangeException, system.IndexOutOfRangeException, system.PlatformNotSupportedException, system.NotSupportedException, system.ObjectDisposedException, system.InvalidOperationException, system.RankException, system.ArrayTypeMismatchException, system.FormatException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { JCObject val = (JCObject)classType.Get("Error"); return new TextWriter(val); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static TextWriter getOut() throws Throwable, system.ArgumentException, system.ArgumentOutOfRangeException, system.IndexOutOfRangeException, system.PlatformNotSupportedException, system.NotSupportedException, system.ObjectDisposedException, system.InvalidOperationException, system.RankException, system.ArrayTypeMismatchException, system.FormatException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { JCObject val = (JCObject)classType.Get("Out"); return new TextWriter(val); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static java.lang.String getTitle() throws Throwable, system.ArgumentException, system.PlatformNotSupportedException, system.NotSupportedException, system.InvalidOperationException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.FormatException, system.IndexOutOfRangeException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { return (java.lang.String)classType.Get("Title"); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static void setTitle(java.lang.String Title) throws Throwable, system.ArgumentException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.InvalidOperationException, system.PlatformNotSupportedException, system.ArrayTypeMismatchException, system.IndexOutOfRangeException, system.NotSupportedException, system.globalization.CultureNotFoundException, system.ObjectDisposedException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { classType.Set("Title", Title); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static Encoding getInputEncoding() throws Throwable, system.ArgumentException, system.ArgumentOutOfRangeException, system.IndexOutOfRangeException, system.PlatformNotSupportedException, system.NotSupportedException, system.ObjectDisposedException, system.InvalidOperationException, system.RankException, system.ArrayTypeMismatchException, system.FormatException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { JCObject val = (JCObject)classType.Get("InputEncoding"); return new Encoding(val); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static void setInputEncoding(Encoding InputEncoding) throws Throwable, system.ArgumentException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.InvalidOperationException, system.PlatformNotSupportedException, system.ArrayTypeMismatchException, system.IndexOutOfRangeException, system.NotSupportedException, system.ObjectDisposedException, system.RankException, system.FormatException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { classType.Set("InputEncoding", InputEncoding == null ? null : InputEncoding.getJCOInstance()); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static Encoding getOutputEncoding() throws Throwable, system.ArgumentException, system.ArgumentOutOfRangeException, system.IndexOutOfRangeException, system.PlatformNotSupportedException, system.NotSupportedException, system.ObjectDisposedException, system.InvalidOperationException, system.RankException, system.ArrayTypeMismatchException, system.FormatException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { JCObject val = (JCObject)classType.Get("OutputEncoding"); return new Encoding(val); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static void setOutputEncoding(Encoding OutputEncoding) throws Throwable, system.ArgumentException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.InvalidOperationException, system.PlatformNotSupportedException, system.ArrayTypeMismatchException, system.IndexOutOfRangeException, system.NotSupportedException, system.ObjectDisposedException, system.RankException, system.FormatException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { classType.Set("OutputEncoding", OutputEncoding == null ? null : OutputEncoding.getJCOInstance()); } catch (JCNativeException jcne) { throw translateException(jcne); } } // Instance Events section }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy