com.github.junrar.impl
Class FileVolume

java.lang.Object
  extended by com.github.junrar.impl.FileVolume
All Implemented Interfaces:
Volume

public class FileVolume
extends Object
implements Volume

Author:
Rogiel

Constructor Summary
FileVolume(Archive archive, File file)
           
 
Method Summary
 Archive getArchive()
           
 File getFile()
           
 long getLength()
           
 IReadOnlyAccess getReadOnlyAccess()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileVolume

public FileVolume(Archive archive,
                  File file)
Parameters:
file -
Method Detail

getReadOnlyAccess

public IReadOnlyAccess getReadOnlyAccess()
                                  throws IOException
Specified by:
getReadOnlyAccess in interface Volume
Returns:
the access
Throws:
IOException

getLength

public long getLength()
Specified by:
getLength in interface Volume
Returns:
the data length

getArchive

public Archive getArchive()
Specified by:
getArchive in interface Volume
Returns:
the archive this volume belongs to

getFile

public File getFile()
Returns:
the file


Copyright © 2012. All Rights Reserved.