public class ObjectWriter extends Thread
Thread.State, Thread.UncaughtExceptionHandler
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
Constructor and Description |
---|
ObjectWriter(Object obj) |
Modifier and Type | Method and Description |
---|---|
InputStream |
getInputStream()
Returns a PipedInputStream from which the object given as parameter for
the constructor can be read.
|
int |
getSize()
Obtains the object size.
|
void |
run()
Writes all the buffers to the output stream
|
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
public ObjectWriter(Object obj) throws IOException
IOException
public InputStream getInputStream()
public int getSize()
Copyright © 2024 GATE. All rights reserved.