org.gwe.drivers.fileSystems.handles
Class HTTPHandle

java.lang.Object
  extended by org.gwe.drivers.ResourceHandle
      extended by org.gwe.drivers.fileSystems.FileHandle
          extended by org.gwe.drivers.fileSystems.handles.HTTPHandle

public class HTTPHandle
extends FileHandle

Since:
May 25, 2008
Author:
Marco Ruiz

Field Summary
 
Fields inherited from class org.gwe.drivers.ResourceHandle
link
 
Constructor Summary
HTTPHandle(ResourceLink<FileHandle> link)
           
 
Method Summary
 void createFolder()
           
 boolean exists()
           
 FileHandle[] getChildren()
          The equivalent of "ls" in a directory.
 java.io.InputStream getInputStream()
           
 java.io.OutputStream getOutputStream()
           
 long getSize()
           
 boolean isDirectory()
           
static void main(java.lang.String[] args)
           
 
Methods inherited from class org.gwe.drivers.fileSystems.FileHandle
copyTo, copyToDir, createCompressedCopyHandle, decompressInto, delete, getPath, getURI, isGlob, readObject, storeObject
 
Methods inherited from class org.gwe.drivers.ResourceHandle
close, createHostHandle, getLink
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HTTPHandle

public HTTPHandle(ResourceLink<FileHandle> link)
Method Detail

createFolder

public void createFolder()
                  throws HandleOperationException
Specified by:
createFolder in class FileHandle
Throws:
HandleOperationException

exists

public boolean exists()
               throws HandleOperationException
Specified by:
exists in class FileHandle
Throws:
HandleOperationException

getChildren

public FileHandle[] getChildren()
                         throws HandleOperationException
Description copied from class: FileHandle
The equivalent of "ls" in a directory.

Specified by:
getChildren in class FileHandle
Returns:
a list of files in the directory.
Throws:
HandleOperationException - - system-level error.

getInputStream

public java.io.InputStream getInputStream()
                                   throws HandleOperationException
Specified by:
getInputStream in class FileHandle
Throws:
HandleOperationException

getOutputStream

public java.io.OutputStream getOutputStream()
                                     throws HandleOperationException
Specified by:
getOutputStream in class FileHandle
Throws:
HandleOperationException

getSize

public long getSize()
             throws HandleOperationException
Specified by:
getSize in class FileHandle
Returns:
number of bytes in the file
Throws:
HandleOperationException - - system-level error.

isDirectory

public boolean isDirectory()
                    throws HandleOperationException
Specified by:
isDirectory in class FileHandle
Returns:
is this a directory?
Throws:
HandleOperationException - - system-level error.

main

public static void main(java.lang.String[] args)


Copyright © 2007-2009. All Rights Reserved.