ome.formats.importer.util
Class FileUploadCounter

java.lang.Object
  extended by ome.formats.importer.util.FileUploadCounter
All Implemented Interfaces:
org.apache.commons.httpclient.methods.RequestEntity

public class FileUploadCounter
extends Object
implements org.apache.commons.httpclient.methods.RequestEntity

Author:
"Brian W. Loranger"

Nested Class Summary
static class FileUploadCounter.OutputStreamCounter
           
static interface FileUploadCounter.ProgressListener
           
 
Constructor Summary
FileUploadCounter(org.apache.commons.httpclient.methods.RequestEntity entity, FileUploadCounter.ProgressListener listener)
          Initialize class
 
Method Summary
 long getContentLength()
           
 String getContentType()
           
 boolean isRepeatable()
           
 void writeRequest(OutputStream out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileUploadCounter

public FileUploadCounter(org.apache.commons.httpclient.methods.RequestEntity entity,
                         FileUploadCounter.ProgressListener listener)
Initialize class

Parameters:
entity - - request entity
listener - - progress listener
Method Detail

writeRequest

public void writeRequest(OutputStream out)
                  throws IOException
Specified by:
writeRequest in interface org.apache.commons.httpclient.methods.RequestEntity
Throws:
IOException

getContentLength

public long getContentLength()
Specified by:
getContentLength in interface org.apache.commons.httpclient.methods.RequestEntity

getContentType

public String getContentType()
Specified by:
getContentType in interface org.apache.commons.httpclient.methods.RequestEntity

isRepeatable

public boolean isRepeatable()
Specified by:
isRepeatable in interface org.apache.commons.httpclient.methods.RequestEntity


OmeroJava Api

Version: 4.3.4-dbcbce5a-b4

Copyright © 2009 The University of Dundee. All Rights Reserved.