|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.partnersoft.v3x.io.AsynchronousStreamCopy
public class AsynchronousStreamCopy
A single AsynchronousStreamCopy job. Includes all state of such a copy, plus methods to wait on a copy to finish etc., verify that it succeeded, etc.
| Constructor Summary | |
|---|---|
AsynchronousStreamCopy()
Create a new AsynchronousStreamCopy. |
|
AsynchronousStreamCopy(AsynchronousStreamCopyManager manager,
java.lang.String name,
long byteCount,
long checksum)
Create a new AsynchronousStreamCopy. |
|
| Method Summary | |
|---|---|
long |
getByteCount()
Expected byteCount of copy. |
long |
getChecksum()
Expected CRC32 of bytes. |
boolean |
getComplete()
Transfer completed flag. |
java.lang.Throwable |
getException()
If transfer failed is true, this is the reason why. |
boolean |
getFailed()
Transfer failed flag. |
java.io.InputStream |
getInputStream()
to copy from (null until ready). |
java.lang.String |
getName()
Descriptive name for copy (e.g. |
java.io.OutputStream |
getOutputStream()
to copy to (null until ready). |
boolean |
isReady()
|
void |
performCopy()
Performs the copy. |
void |
setByteCount(long newByteCount)
Expected byteCount of copy. |
void |
setChecksum(long newChecksum)
Expected CRC32 of bytes. |
void |
setComplete(boolean newComplete)
Transfer completed flag. |
void |
setException(java.lang.Throwable newException)
If transfer failed is true, this is the reason why. |
void |
setFailed(boolean newFailed)
Transfer failed flag. |
void |
setInputStream(java.io.InputStream newInputStream)
to copy from (null until ready). |
void |
setName(java.lang.String newName)
Descriptive name for copy (e.g. |
void |
setOutputStream(java.io.OutputStream newOutputStream)
to copy to (null until ready). |
java.lang.String |
toString()
|
void |
waitForCompletion()
Blocks until copy completes. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AsynchronousStreamCopy()
public AsynchronousStreamCopy(AsynchronousStreamCopyManager manager,
java.lang.String name,
long byteCount,
long checksum)
| Method Detail |
|---|
public void waitForCompletion()
public void performCopy()
public boolean isReady()
public java.lang.String toString()
toString in class java.lang.Objectpublic long getChecksum()
public void setChecksum(long newChecksum)
public boolean getComplete()
public void setComplete(boolean newComplete)
public java.lang.Throwable getException()
public void setException(java.lang.Throwable newException)
public boolean getFailed()
public void setFailed(boolean newFailed)
public java.io.InputStream getInputStream()
public void setInputStream(java.io.InputStream newInputStream)
public java.lang.String getName()
public void setName(java.lang.String newName)
public java.io.OutputStream getOutputStream()
public void setOutputStream(java.io.OutputStream newOutputStream)
public long getByteCount()
public void setByteCount(long newByteCount)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||