com.github.junrar.vfs2.provider.rar
Class VFSVolume

java.lang.Object
  extended by com.github.junrar.vfs2.provider.rar.VFSVolume
All Implemented Interfaces:
Volume

public class VFSVolume
extends Object
implements Volume

Author:
Rogiel

Constructor Summary
VFSVolume(Archive archive, org.apache.commons.vfs2.FileObject file)
           
 
Method Summary
 Archive getArchive()
           
 org.apache.commons.vfs2.FileObject 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

VFSVolume

public VFSVolume(Archive archive,
                 org.apache.commons.vfs2.FileObject file)
Parameters:
archive -
firstVolume -
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 org.apache.commons.vfs2.FileObject getFile()
Returns:
the file


Copyright © 2012. All Rights Reserved.