Uses of Class
com.wolfram.jlink.MathLinkException

Packages that use MathLinkException
com.wolfram.jlink This is the main J/Link package, containing the classes and interfaces that programmers will use most. 
com.wolfram.jlink.ui Includes some classes useful in programs with non-trivial user intefaces. 
com.wolfram.jlink.util A couple of special utility classes: LinkSnooper, a program that displays MathLink traffic between two programs, and MathematicaTask, an Ant task for using Mathematica in Ant build files. 
 

Uses of MathLinkException in com.wolfram.jlink
 

Methods in com.wolfram.jlink that throw MathLinkException
 void MathLink.activate()
          Same as connect().
 int MathLink.bytesToGet()
          Returns the number of bytes that remain to be read in the element that is currently being read in textual form.
 int MathLink.bytesToPut()
          Gives the number of bytes that remain to be sent in the element that is currently being sent in textual form.
 int MathLink.checkFunction(java.lang.String f)
          Reads a function name and argument count and compares the function name with f.
 void MathLink.checkFunctionWithArgCount(java.lang.String f, int argCount)
          Reads a function name and argument count and compares the function name with f and the argument count with argCount.
 void MathLink.connect()
          Connects the link, if it has not already been connected.
 void MathLink.connect(long timeoutMillis)
          Connects the link, but waits at most timeoutMillis for a response from the other side.
static Expr Expr.createFromLink(MathLink ml)
          This factory method will only be used by advanced programmers who are creating their own classes that implement the MathLink interface.
static KernelLink MathLinkFactory.createKernelLink(MathLink ml)
          Creates a KernelLink by wrapping a MathLink.
static KernelLink MathLinkFactory.createKernelLink(java.lang.String cmdLine)
          Creates a KernelLink.
static KernelLink MathLinkFactory.createKernelLink(java.lang.String[] argv)
          Creates a KernelLink.
static LoopbackLink MathLinkFactory.createLoopbackLink()
          Creates a LoopbackLink, a special type of link that is written to and read by the same program.
 long MathLink.createMark()
          Creates a mark at the current point in the incoming MathLink data stream.
static MathLink MathLinkFactory.createMathLink(java.lang.String cmdLine)
          Creates a MathLink.
static MathLink MathLinkFactory.createMathLink(java.lang.String[] argv)
          Creates a MathLink.
 void KernelLink.discardAnswer()
          Reads and discards all packets generated during a computation.
 void KernelLink.enableObjectReferences()
          Call this method to enable the ability to pass Java objects "by reference" to Mathematica.
 Expr KernelLink.enableObjectReferences(boolean becomeDefaultJVM)
          Call this method to enable the ability to pass Java objects "by reference" to Mathematica.
 void MathLink.endPacket()
          Call it when you are finished writing the contents of a single packet.
 void KernelLink.evaluate(Expr e)
          Sends an Expr for evaluation.
 void KernelLink.evaluate(java.lang.String s)
          Sends a string for evaluation.
 void MathLink.flush()
          Immediately transmits any data buffered for sending over the link.
 int MathLink.getArgCount()
          Reads the argument count of an expression being read manually.
 java.lang.Object KernelLink.getArray(int type, int depth)
          Extends the MathLink method of the same signature by allowing the extra type specification MLTKOBJECT.
 java.lang.Object MathLink.getArray(int type, int depth)
          Reads an array of the specified type and depth.
 java.lang.Object KernelLink.getArray(int type, int depth, java.lang.String[] heads)
          Extends the MathLink method of the same signature by allowing the extra type specification MLTKOBJECT.
 java.lang.Object MathLink.getArray(int type, int depth, java.lang.String[] heads)
          Reads an array of the specified type and depth and records the heads at each level.
 boolean MathLink.getBoolean()
          Reads the Mathematica symbols True or False as a boolean.
 boolean[] MathLink.getBooleanArray1()
          Reads a list as a one-dimensional array of booleans.
 boolean[][] MathLink.getBooleanArray2()
          Reads an array as a two-dimensional array of booleans.
 byte[] MathLink.getByteArray1()
          Reads a list or array as a one-dimensional array of bytes.
 byte[][] MathLink.getByteArray2()
          Reads an array as a two-dimensional array of bytes.
 byte[] MathLink.getByteString(int missing)
          Reads a Mathematica string as an array of bytes.
 char[] MathLink.getCharArray1()
          Reads a list or array as a one-dimensional array of chars.
 char[][] MathLink.getCharArray2()
          Reads an array as a two-dimensional array of chars.
 java.lang.Object MathLink.getComplex()
          Reads a complex number.
 java.lang.Object[] MathLink.getComplexArray1()
          Reads a list as a one-dimensional array of complex numbers.
 java.lang.Object[][] MathLink.getComplexArray2()
          Reads a matrix as a two-dimensional array of complex numbers.
 byte[] MathLink.getData(int len)
          Gets a specified number of bytes in the textual form of the expression currently being read.
 double MathLink.getDouble()
          Reads a Mathematica real number or integer as a double.
 double[] MathLink.getDoubleArray1()
          Reads a list or array as a one-dimensional array of doubles.
 double[][] MathLink.getDoubleArray2()
          Reads an array as a two-dimensional array of doubles.
 Expr MathLink.getExpr()
          Reads an expression from the link and creates an Expr from it.
 float[] MathLink.getFloatArray1()
          Reads a list or array as a one-dimensional array of floats.
 float[][] MathLink.getFloatArray2()
          Reads an array as a two-dimensional array of floats.
 MLFunction MathLink.getFunction()
          Reads a function name and argument count.
 int[] MathLink.getIntArray1()
          Reads a list or array as a one-dimensional array of ints.
 int[][] MathLink.getIntArray2()
          Reads an array as a two-dimensional array of ints.
 int MathLink.getInteger()
          Reads a Mathematica integer as an int.
 long[] MathLink.getLongArray1()
          Reads a list as a one-dimensional array of longs.
 long[][] MathLink.getLongArray2()
          Reads an array as a two-dimensional array of longs.
 long MathLink.getLongInteger()
          Reads a Mathematica integer as a long.
 int MathLink.getMessage()
          Deprecated.  
 int KernelLink.getNext()
          Extends the MathLink method of the same name by allowing the extra return type MLTKOBJECT.
 int MathLink.getNext()
          Gives the type of the next element in the expression currently being read.
 java.lang.Object KernelLink.getObject()
          Reads a Java object reference from the link.
 short[] MathLink.getShortArray1()
          Reads a list or array as a one-dimensional array of shorts.
 short[][] MathLink.getShortArray2()
          Reads an array as a two-dimensional array of shorts.
 java.lang.String MathLink.getString()
          Reads a Mathematica character string.
 java.lang.String[] MathLink.getStringArray1()
          Reads a list as a one-dimensional array of strings.
 java.lang.String[][] MathLink.getStringArray2()
          Reads an array as a two-dimensional array of strings.
 java.lang.String MathLink.getSymbol()
          Reads a Mathematica symbol as a string.
 int KernelLink.getType()
          Extends the MathLink method of the same name by allowing the extra return type MLTKOBJECT.
 int MathLink.getType()
          Gives the type of the current element in the expression currently being read.
 void KernelLink.handlePacket(int pkt)
          Call this to invoke J/Link's internal handling of special packet types.
 boolean MathLink.messageReady()
          Deprecated.  
 java.lang.String MathLink.name()
          Gives the name of the link.
 int MathLink.nextPacket()
          "Opens" the next packet arriving on the link.
 boolean PacketListener.packetArrived(PacketArrivedEvent evt)
          Called when a packet arrives.
 boolean PacketPrinter.packetArrived(PacketArrivedEvent evt)
          Invoked when a packet arrives on the link.
 Expr MathLink.peekExpr()
          Creates an Expr from the current expression, but does not drain it off the link.
 void MathLink.put(boolean b)
          Sends the boolean value as the Mathematica symbol True or False.
 void MathLink.put(double d)
          Sends a double value.
 void MathLink.put(int i)
          Sends an integer value.
 void MathLink.put(long i)
          Sends a long value.
 void Expr.put(MathLink ml)
          Not intended for general use.
 void KernelLink.put(java.lang.Object obj)
          Sends an object.
 void MathLink.put(java.lang.Object obj)
          Sends an object, including strings and arrays.
 void MathLink.put(java.lang.Object obj, java.lang.String[] heads)
          Sends an array object.
 void MathLink.putArgCount(int argCount)
          Specifies the argument count for a composite expression being sent manually.
 void MathLink.putByteString(byte[] data)
          Sends an array of bytes to Mathematica as a string.
 void MathLink.putData(byte[] data)
          Used for sending elements in textual form.
 void MathLink.putData(byte[] data, int len)
          An alternative form of putData() that lets you specify how many bytes from the array should be sent, rather than just sending the whole thing.
 void MathLink.putFunction(java.lang.String f, int argCount)
          Sends a function name and argument count.
 void MathLink.putMessage(int msg)
          Sends a low-level MathLink message.
 void MathLink.putNext(int type)
          Identifies the type of data element that is to be sent.
 void KernelLink.putReference(java.lang.Object obj)
          Sends an object to Mathematica "by reference".
 void MathLink.putSize(int size)
          Specifies the size in bytes of an element being sent in textual form.
 void MathLink.putSymbol(java.lang.String s)
          Sends a symbol name.
 boolean MathLink.ready()
          Indicates whether the link has data waiting to be read.
 void MathLink.transferExpression(MathLink source)
          Writes a complete expression from the link source to this link.
 void MathLink.transferToEndOfLoopbackLink(LoopbackLink source)
          Writes the entire contents of the LoopbackLink source to this link.
 int KernelLink.waitForAnswer()
          Reads and discards all packets that arrive up until the packet that contains the result of the computation.
 

Uses of MathLinkException in com.wolfram.jlink.ui
 

Methods in com.wolfram.jlink.ui that throw MathLinkException
 void MathSessionPane.connect()
          Connects the link to Mathematica and prepares the pane for use.
 boolean InterruptDialog.packetArrived(PacketArrivedEvent evt)
           
 

Uses of MathLinkException in com.wolfram.jlink.util
 

Methods in com.wolfram.jlink.util that throw MathLinkException
 void LinkSnooper.feMainMessageHandler(int msgType, int ignore)
           
 void LinkSnooper.fePreemptiveMessageHandler(int msgType, int ignore)
           
 void LinkSnooper.feServiceMessageHandler(int msgType, int ignore)
           
 void LinkSnooper.kernelMainMessageHandler(int msgType, int ignore)
           
 void LinkSnooper.kernelPreemptiveMessageHandler(int msgType, int ignore)
           
 void LinkSnooper.kernelServiceMessageHandler(int msgType, int ignore)
           
static void LinkSnooper.main(java.lang.String[] argv)
           
 boolean MathematicaTask.packetArrived(PacketArrivedEvent evt)
           
 

Constructors in com.wolfram.jlink.util that throw MathLinkException
LinkSnooper(java.lang.String[] argv)
           
LinkSnooper(java.lang.String[] argv, java.io.PrintStream pstrm)
           
 



J/Link is Copyright (c) 1999-2008, Wolfram Research, Inc. All rights reserved.