public static class ExecutionServiceDemo.SortingByteCallable extends java.lang.Object implements java.util.concurrent.Callable<byte[]>, Streamable
| Modifier and Type | Field and Description |
|---|---|
protected byte[] |
bytes |
protected int |
offset |
protected int |
size |
| Constructor and Description |
|---|
SortingByteCallable() |
SortingByteCallable(byte[] bytes,
int offset,
int size) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
call() |
void |
readFrom(java.io.DataInputStream in)
Read the state of the current object (including superclasses) from instream
Note that the input stream must not be closed
|
void |
writeTo(java.io.DataOutputStream out)
Write the entire state of the current object (including superclasses) to outstream.
|
public SortingByteCallable()
public SortingByteCallable(byte[] bytes,
int offset,
int size)
public byte[] call()
throws java.lang.Exception
call in interface java.util.concurrent.Callable<byte[]>java.lang.Exceptionpublic void writeTo(java.io.DataOutputStream out)
throws java.io.IOException
StreamablewriteTo in interface Streamablejava.io.IOExceptionpublic void readFrom(java.io.DataInputStream in)
throws java.io.IOException,
java.lang.IllegalAccessException,
java.lang.InstantiationException
StreamablereadFrom in interface Streamablejava.io.IOExceptionjava.lang.IllegalAccessExceptionjava.lang.InstantiationExceptionCopyright ? 1998-2009 Bela Ban / Red Hat. All Rights Reserved.