public static class ExecutionServiceDemo.SortingTwoByteCallable extends java.lang.Object implements java.util.concurrent.Callable<byte[]>, Streamable
Modifier and Type | Field and Description |
---|---|
protected byte[] |
bytes1 |
protected byte[] |
bytes2 |
Constructor and Description |
---|
ExecutionServiceDemo.SortingTwoByteCallable() |
ExecutionServiceDemo.SortingTwoByteCallable(byte[] ints1,
byte[] ints2) |
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.SortingTwoByteCallable()
public ExecutionServiceDemo.SortingTwoByteCallable(byte[] ints1, byte[] ints2)
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.