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 |
---|
ExecutionServiceDemo.SortingByteCallable() |
ExecutionServiceDemo.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 ExecutionServiceDemo.SortingByteCallable()
public ExecutionServiceDemo.SortingByteCallable(byte[] bytes, int offset, int size)
public byte[] call() throws java.lang.Exception
call
in interface java.util.concurrent.Callable<byte[]>
java.lang.Exception
public void writeTo(java.io.DataOutputStream out) throws java.io.IOException
Streamable
writeTo
in interface Streamable
java.io.IOException
public void readFrom(java.io.DataInputStream in) throws java.io.IOException, java.lang.IllegalAccessException, java.lang.InstantiationException
Streamable
readFrom
in interface Streamable
java.io.IOException
java.lang.IllegalAccessException
java.lang.InstantiationException
Copyright ? 1998-2009 Bela Ban / Red Hat. All Rights Reserved.