|
Sun Adapter for File API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.stc.connector.fileadapter.eway.InboundFile
public class InboundFile
Class representing a file found by the poller and used by the scheduler
| Constructor Summary | |
|---|---|
InboundFile(java.io.File aFile)
Creates a new instance representing a lockable file |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object aTest)
|
java.io.File |
getFile(long aTimeout)
Tries to get a hold onto the lock and if it succeeds then it will return the file. |
int |
hashCode()
|
void |
release()
Release the lock |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public InboundFile(java.io.File aFile)
throws java.lang.IllegalArgumentException
aFile - File this instance represents
java.lang.IllegalArgumentException - If any of the parameters are null| Method Detail |
|---|
public java.io.File getFile(long aTimeout)
throws java.lang.InterruptedException
aTimeout - Time in milliseconds to wait for the lock
java.lang.InterruptedException - If the lock could not be aquiredpublic void release()
public boolean equals(java.lang.Object aTest)
equals in class java.lang.ObjectObject.equals(java.lang.Object)public int hashCode()
hashCode in class java.lang.ObjectObject.hashCode()public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()
|
Sun Adapter for File API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||