X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=website%2Ffull_javadoc%2Fcompbio%2Fengine%2FFilePuller.html;fp=website%2Ffull_javadoc%2Fcompbio%2Fengine%2FFilePuller.html;h=8f9d2855ebac79ec35b51a07173543156fc84ff2;hb=da8c820a7fb2edecb190589f3dc9c362e57a2f24;hp=0000000000000000000000000000000000000000;hpb=0bbebf27d045b1345bc042bdf24ef2e6808df251;p=jabaws.git diff --git a/website/full_javadoc/compbio/engine/FilePuller.html b/website/full_javadoc/compbio/engine/FilePuller.html new file mode 100644 index 0000000..8f9d285 --- /dev/null +++ b/website/full_javadoc/compbio/engine/FilePuller.html @@ -0,0 +1,551 @@ + + + + + + +FilePuller + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +compbio.engine +
+Class FilePuller

+
+java.lang.Object
+  extended by compbio.engine.FilePuller
+
+
+
All Implemented Interfaces:
Comparable<Delayed>, Delayed
+
+
+
+
public class FilePuller
extends Object
implements Delayed
+ + +

+


+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ intcompareTo(Delayed o) + +
+           
+ voiddisconnect() + +
+           
+ booleanequals(Object obj) + +
+           
+ longgetDelay(TimeUnit unit) + +
+           
+ StringgetFile() + +
+           
+ bytegetProgress() + +
+           
+ inthashCode() + +
+           
+ booleanhasMoreData() + +
+           
+ voidinitPull() + +
+           
+ booleanisFileCreated() + +
+           
+static FilePullernewFilePuller(String file, + int chunkSize) + +
+           
+static FilePullernewProgressPuller(String file) + +
+          Progress Puller is designed to read 3 characters from the beginning of + the file, nothing more.
+ ChunkHolderpull(long position) + +
+           
+ StringtoString() + +
+           
+ voidwaitForFile(long maxWaitSeconds) + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Method Detail
+ +

+newFilePuller

+
+public static FilePuller newFilePuller(String file,
+                                       int chunkSize)
+
+
+
+
+
+
+
+
+
+ +

+newProgressPuller

+
+public static FilePuller newProgressPuller(String file)
+
+
Progress Puller is designed to read 3 characters from the beginning of + the file, nothing more. Intended to be used in conjunction with a tool + which output progress as a percent value from 0 to 100. In any cases + progress could not be more than the largest byte value 255. +

+

+
+
+
+
Parameters:
file - +
Returns:
instance
+
+
+
+ +

+pull

+
+public ChunkHolder pull(long position)
+                 throws IOException
+
+
+
+
+
+ +
Throws: +
IOException
+
+
+
+ +

+initPull

+
+public void initPull()
+
+
+
+
+
+
+
+
+
+ +

+getFile

+
+public String getFile()
+
+
+
+
+
+
+
+
+
+ +

+isFileCreated

+
+public boolean isFileCreated()
+
+
+
+
+
+
+
+
+
+ +

+waitForFile

+
+public void waitForFile(long maxWaitSeconds)
+
+
+
+
+
+
+
+
+
+ +

+hasMoreData

+
+public boolean hasMoreData()
+                    throws IOException
+
+
+
+
+
+ +
Throws: +
IOException
+
+
+
+ +

+compareTo

+
+public int compareTo(Delayed o)
+
+
+
Specified by:
compareTo in interface Comparable<Delayed>
+
+
+
+
+
+
+ +

+getDelay

+
+public long getDelay(TimeUnit unit)
+
+
+
Specified by:
getDelay in interface Delayed
+
+
+
+
+
+
+ +

+disconnect

+
+public void disconnect()
+
+
+
+
+
+
+
+
+
+ +

+toString

+
+public String toString()
+
+
+
Overrides:
toString in class Object
+
+
+
+
+
+
+ +

+equals

+
+public boolean equals(Object obj)
+
+
+
Overrides:
equals in class Object
+
+
+
+
+
+
+ +

+hashCode

+
+public int hashCode()
+
+
+
Overrides:
hashCode in class Object
+
+
+
+
+
+
+ +

+getProgress

+
+public byte getProgress()
+                 throws IOException
+
+
+
+
+
+ +
Throws: +
IOException
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + +