grinda.client
Class FileChunk

java.lang.Object
  extended by grinda.client.FileChunk

public class FileChunk
extends java.lang.Object

This class is used to identify file chunks and pass them to a DataTuple in order to be directly transmitted outside the Tuple Space.

Author:
Sirio Capizzi

Constructor Summary
FileChunk(java.io.File f, long start, long length)
           
FileChunk(java.lang.String path)
           
FileChunk(java.lang.String path, long start)
           
FileChunk(java.lang.String path, long start, long length)
          Creates a new File descriptor
 
Method Summary
 java.lang.String getAbsolutePath()
           
 long getLength()
           
 long getStart()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileChunk

public FileChunk(java.lang.String path)

FileChunk

public FileChunk(java.lang.String path,
                 long start)

FileChunk

public FileChunk(java.lang.String path,
                 long start,
                 long length)
Creates a new File descriptor

Parameters:
the - path
start -
length -

FileChunk

public FileChunk(java.io.File f,
                 long start,
                 long length)
Method Detail

getStart

public long getStart()

getLength

public long getLength()

getAbsolutePath

public java.lang.String getAbsolutePath()


Copyright © 2006 Sirio Capizzi. All Rights Reserved.