org.ogre4j
Interface IArchive

All Superinterfaces:
IAllocatedObject<IGeneralAllocPolicy>, IGeneralAllocatedObject, INativeObject
All Known Subinterfaces:
IFileSystemArchive, IZipArchive
All Known Implementing Classes:
Archive, FileSystemArchive, ZipArchive

public interface IArchive
extends INativeObject, IGeneralAllocatedObject


Method Summary
 boolean exists(java.lang.String filename)
          Find out if the named file exists (note: fully qualified filename required)
 void find(IStringVectorPtr returnValue, java.lang.String pattern, boolean recursive, boolean dirs)
          Find all file or directory names matching a given pattern in this archive.
 void findFileInfo(IFileInfoListPtr returnValue, java.lang.String pattern, boolean recursive, boolean dirs)
          Find all files or directories matching a given pattern in this archive and get some detailed information about them.
 long getModifiedTime(java.lang.String filename)
          Retrieve the modification time of a given file
 java.lang.String getName()
           
 java.lang.String getType()
           
 boolean isCaseSensitive()
           
 void list(IStringVectorPtr returnValue, boolean recursive, boolean dirs)
          List all file names in the archive.
 void listFileInfo(IFileInfoListPtr returnValue, boolean recursive, boolean dirs)
          List all files in the archive with accompanying information.
 void load()
          Loads the archive.
 void open(IDataStreamPtr returnValue, java.lang.String filename)
          Open a stream on a given file.
 void unload()
          Unloads the archive.
 
Methods inherited from interface org.xbig.base.INativeObject
delete, disconnectFromNativeObject, getInstancePointer, setInstancePointer, setInstancePointer, setInstancePointer
 

Method Detail

getName

java.lang.String getName()

isCaseSensitive

boolean isCaseSensitive()

load

void load()
Loads the archive.


unload

void unload()
Unloads the archive.


open

void open(IDataStreamPtr returnValue,
          java.lang.String filename)
Open a stream on a given file.


list

void list(IStringVectorPtr returnValue,
          boolean recursive,
          boolean dirs)
List all file names in the archive.


listFileInfo

void listFileInfo(IFileInfoListPtr returnValue,
                  boolean recursive,
                  boolean dirs)
List all files in the archive with accompanying information.


find

void find(IStringVectorPtr returnValue,
          java.lang.String pattern,
          boolean recursive,
          boolean dirs)
Find all file or directory names matching a given pattern in this archive.


exists

boolean exists(java.lang.String filename)
Find out if the named file exists (note: fully qualified filename required)


getModifiedTime

long getModifiedTime(java.lang.String filename)
Retrieve the modification time of a given file


findFileInfo

void findFileInfo(IFileInfoListPtr returnValue,
                  java.lang.String pattern,
                  boolean recursive,
                  boolean dirs)
Find all files or directories matching a given pattern in this archive and get some detailed information about them.


getType

java.lang.String getType()


Copyright © 2007 netAllied GmbH. All Rights Reserved.