public abstract class Toolkit
extends java.lang.Object
| Modifier | Constructor and Description |
|---|---|
protected |
Toolkit() |
| Modifier and Type | Method and Description |
|---|---|
abstract java.io.InputStream |
buffer(java.io.InputStream stream)
Ensures the returned InputStream is a BufferedInputStream.
|
abstract SimpleStringBuilder |
createSimpleStringBuilder() |
abstract SimpleStringBuilder |
createSimpleStringBuilder(int capacity) |
abstract SimpleStringBuilder |
createSimpleStringBuilder(java.lang.String str) |
static Toolkit |
getInstance() |
int |
getJavaVersionDigit1() |
int |
getJavaVersionDigit2() |
int |
getJavaVersionDigit3() |
int |
getJavaVersionUpdateNumber()
Deprecated.
|
abstract java.lang.String[] |
getStackTrace(java.lang.Throwable t)
Returns the Java VM stack trace if possible.
|
static boolean |
onCldcLibrary()
checks whether the current framework instance is running on top of the
CLDC library.
|
abstract void |
printStackTrace(java.io.PrintStream err,
java.lang.Throwable t)
Implementation of the stack trace logging.
|
abstract void |
writeBufferToStream(java.io.ByteArrayOutputStream source,
java.io.OutputStream target)
Writes the complete contents of the byte array output stream to the target output stream like
source.writeTo(target) of the SE version of ByteArrayOutputStream
would do. |
public static boolean onCldcLibrary()
true if this is the case. in case the framework runs on top of the Java CLDC configurationpublic static Toolkit getInstance()
public int getJavaVersionDigit1()
public int getJavaVersionDigit2()
public int getJavaVersionDigit3()
public int getJavaVersionUpdateNumber()
public abstract void printStackTrace(java.io.PrintStream err,
java.lang.Throwable t)
err - Stream to, if possible, print the stack trace on.t - Throwable to print.public abstract java.lang.String[] getStackTrace(java.lang.Throwable t)
Can return null if the platform does not support access to the stack trace!
t - stack traceString.public abstract void writeBufferToStream(java.io.ByteArrayOutputStream source,
java.io.OutputStream target)
throws java.io.IOException
source.writeTo(target) of the SE version of ByteArrayOutputStream
would do.source - the byte array output stream whose buffer should be writtentarget - the output stream to which to write the data.java.io.IOException - if an I/O error occurs.public abstract java.io.InputStream buffer(java.io.InputStream stream)
stream - streampublic abstract SimpleStringBuilder createSimpleStringBuilder()
public abstract SimpleStringBuilder createSimpleStringBuilder(int capacity)
public abstract SimpleStringBuilder createSimpleStringBuilder(java.lang.String str)