MyStandardIn
Reads text input. When invoking the Java runtime environment using JMOpenSession, you must designate a callback function to direct any console input to the session. For example, this is how you would define your input function if you were to name it MyStandardIn:
SInt32 MyStandardIn(JMSessionRef session,
char* buffer,
SInt32 maxBufferLength);
session
- The session to receive the text input.
buffer
- The buffer to hold the input.
maxBufferLength
- The maximum length allowed by the buffer.
- function result
- The number of characters actually read (up to
maxBufferLength) or -1 if an error occurred.