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

java.lang.Object
  extended by org.apache.commons.vfs2.provider.AbstractFileObject
      extended by com.github.junrar.vfs2.provider.rar.RARFileObject
All Implemented Interfaces:
org.apache.commons.vfs2.FileObject

public class RARFileObject
extends org.apache.commons.vfs2.provider.AbstractFileObject
implements org.apache.commons.vfs2.FileObject

A file in a RAR file system.

Author:
Rogiel

Field Summary
protected  Archive archive
          The TFile.
protected  FileHeader header
           
 
Constructor Summary
protected RARFileObject(org.apache.commons.vfs2.provider.AbstractFileName name, Archive archive, FileHeader header, RARFileSystem fs)
           
 
Method Summary
 void attachChild(org.apache.commons.vfs2.FileName childName)
          Attaches a child.
protected  long doGetContentSize()
           
protected  InputStream doGetInputStream()
           
protected  long doGetLastModifiedTime()
           
protected  org.apache.commons.vfs2.FileType doGetType()
           
 boolean doIsWriteable()
           
protected  String[] doListChildren()
           
 void setHeader(FileHeader header)
           
 
Methods inherited from class org.apache.commons.vfs2.provider.AbstractFileObject
canRenameTo, childrenChanged, close, copyFrom, createFile, createFolder, delete, delete, doAttach, doCreateFileContent, doCreateFolder, doDelete, doDetach, doGetAttributes, doGetCertificates, doGetOutputStream, doGetRandomAccessContent, doIsHidden, doIsReadable, doIsSameFile, doListChildrenResolved, doRemoveAttribute, doRename, doSetAttribute, doSetLastModifiedTime, endOutput, exists, finalize, findFiles, findFiles, getChild, getChildren, getContent, getFileContentInfoFactory, getFileOperations, getFileSystem, getInputStream, getName, getOutputStream, getOutputStream, getParent, getRandomAccessContent, getType, getURL, handleChanged, handleCreate, handleDelete, holdObject, injectType, isAttached, isContentOpen, isHidden, isReadable, isSameFile, isWriteable, moveTo, notifyAllStreamsClosed, onChange, onChildrenChanged, refresh, resolveFile, resolveFile, toString
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.commons.vfs2.FileObject
canRenameTo, close, copyFrom, createFile, createFolder, delete, delete, exists, findFiles, findFiles, getChild, getChildren, getContent, getFileOperations, getFileSystem, getName, getParent, getType, getURL, isAttached, isContentOpen, isHidden, isReadable, isWriteable, moveTo, refresh, resolveFile, resolveFile
 

Field Detail

archive

protected Archive archive
The TFile.


header

protected FileHeader header
Constructor Detail

RARFileObject

protected RARFileObject(org.apache.commons.vfs2.provider.AbstractFileName name,
                        Archive archive,
                        FileHeader header,
                        RARFileSystem fs)
                 throws org.apache.commons.vfs2.FileSystemException
Throws:
org.apache.commons.vfs2.FileSystemException
Method Detail

doIsWriteable

public boolean doIsWriteable()
                      throws org.apache.commons.vfs2.FileSystemException
Overrides:
doIsWriteable in class org.apache.commons.vfs2.provider.AbstractFileObject
Throws:
org.apache.commons.vfs2.FileSystemException

doGetType

protected org.apache.commons.vfs2.FileType doGetType()
Specified by:
doGetType in class org.apache.commons.vfs2.provider.AbstractFileObject

doListChildren

protected String[] doListChildren()
Specified by:
doListChildren in class org.apache.commons.vfs2.provider.AbstractFileObject

doGetContentSize

protected long doGetContentSize()
Specified by:
doGetContentSize in class org.apache.commons.vfs2.provider.AbstractFileObject

doGetLastModifiedTime

protected long doGetLastModifiedTime()
                              throws Exception
Overrides:
doGetLastModifiedTime in class org.apache.commons.vfs2.provider.AbstractFileObject
Throws:
Exception

doGetInputStream

protected InputStream doGetInputStream()
                                throws Exception
Specified by:
doGetInputStream in class org.apache.commons.vfs2.provider.AbstractFileObject
Throws:
Exception

attachChild

public void attachChild(org.apache.commons.vfs2.FileName childName)
Attaches a child.

Parameters:
childName - The name of the child.

setHeader

public void setHeader(FileHeader header)
Parameters:
header -


Copyright © 2012. All Rights Reserved.