org.ogre4j
Class FileSystemArchive

java.lang.Object
  extended by org.xbig.base.NativeObject
      extended by org.ogre4j.FileSystemArchive
All Implemented Interfaces:
IAllocatedObject<IGeneralAllocPolicy>, IArchive, IFileSystemArchive, IGeneralAllocatedObject, INativeObject

public class FileSystemArchive
extends NativeObject
implements IFileSystemArchive


Field Summary
 
Fields inherited from class org.xbig.base.NativeObject
deleted, object, remote
 
Constructor Summary
  FileSystemArchive(InstancePointer p)
          This constructor is public for internal useage only!
protected FileSystemArchive(InstancePointer p, boolean remote)
          Creates a Java wrapper object for an existing C++ object.
  FileSystemArchive(java.lang.String name, java.lang.String archType)
           
  FileSystemArchive(WithoutNativeObject val)
          Allows creation of Java objects without C++ objects.
 
Method Summary
 void delete()
          Deletes the corresponding C++ object.
 boolean exists(java.lang.String filename)
          Find out if the named file exists (note: fully qualified filename required)
 void finalize()
           
 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.
static boolean getIgnoreHidden()
           
 long getModifiedTime(java.lang.String filename)
          Retrieve the modification time of a given file
static boolean getms_IgnoreHidden()
           
 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.
static void setIgnoreHidden(boolean ignore)
          Set whether filesystem enumeration will include hidden files or not.
static void setms_IgnoreHidden(boolean _jni_value_)
           
 void unload()
          Unloads the archive.
 
Methods inherited from class org.xbig.base.NativeObject
disconnectFromNativeObject, equals, getInstancePointer, hashCode, setInstancePointer, setInstancePointer, setInstancePointer, toString
 
Methods inherited from class java.lang.Object
clone, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.xbig.base.INativeObject
disconnectFromNativeObject, getInstancePointer, setInstancePointer, setInstancePointer, setInstancePointer
 

Constructor Detail

FileSystemArchive

public FileSystemArchive(InstancePointer p)
This constructor is public for internal useage only! Do not use it!


FileSystemArchive

protected FileSystemArchive(InstancePointer p,
                            boolean remote)
Creates a Java wrapper object for an existing C++ object. If remote is set to 'true' this object cannot be deleted in Java.


FileSystemArchive

public FileSystemArchive(WithoutNativeObject val)
Allows creation of Java objects without C++ objects.

See Also:
WithoutNativeObject, INativeObject.disconnectFromNativeObject()

FileSystemArchive

public FileSystemArchive(java.lang.String name,
                         java.lang.String archType)
Method Detail

delete

public void delete()
Description copied from interface: INativeObject
Deletes the corresponding C++ object.

Subclasses must implement this but if the native instance was created by the underlying library the native call to dispose must not happen!

Specified by:
delete in interface INativeObject
Specified by:
delete in class NativeObject
See Also:
#remote

finalize

public void finalize()
Overrides:
finalize in class NativeObject

isCaseSensitive

public boolean isCaseSensitive()
Specified by:
isCaseSensitive in interface IArchive
Specified by:
isCaseSensitive in interface IFileSystemArchive

load

public void load()
Description copied from interface: IArchive
Loads the archive.

Specified by:
load in interface IArchive
Specified by:
load in interface IFileSystemArchive

unload

public void unload()
Description copied from interface: IArchive
Unloads the archive.

Specified by:
unload in interface IArchive
Specified by:
unload in interface IFileSystemArchive

open

public void open(IDataStreamPtr returnValue,
                 java.lang.String filename)
Description copied from interface: IArchive
Open a stream on a given file.

Specified by:
open in interface IArchive
Specified by:
open in interface IFileSystemArchive

list

public void list(IStringVectorPtr returnValue,
                 boolean recursive,
                 boolean dirs)
Description copied from interface: IArchive
List all file names in the archive.

Specified by:
list in interface IArchive
Specified by:
list in interface IFileSystemArchive

listFileInfo

public void listFileInfo(IFileInfoListPtr returnValue,
                         boolean recursive,
                         boolean dirs)
Description copied from interface: IArchive
List all files in the archive with accompanying information.

Specified by:
listFileInfo in interface IArchive
Specified by:
listFileInfo in interface IFileSystemArchive

find

public void find(IStringVectorPtr returnValue,
                 java.lang.String pattern,
                 boolean recursive,
                 boolean dirs)
Description copied from interface: IArchive
Find all file or directory names matching a given pattern in this archive.

Specified by:
find in interface IArchive
Specified by:
find in interface IFileSystemArchive

findFileInfo

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

Specified by:
findFileInfo in interface IArchive
Specified by:
findFileInfo in interface IFileSystemArchive

exists

public boolean exists(java.lang.String filename)
Description copied from interface: IArchive
Find out if the named file exists (note: fully qualified filename required)

Specified by:
exists in interface IArchive
Specified by:
exists in interface IFileSystemArchive

getModifiedTime

public long getModifiedTime(java.lang.String filename)
Description copied from interface: IArchive
Retrieve the modification time of a given file

Specified by:
getModifiedTime in interface IArchive
Specified by:
getModifiedTime in interface IFileSystemArchive

setIgnoreHidden

public static void setIgnoreHidden(boolean ignore)
Set whether filesystem enumeration will include hidden files or not. This should be called prior to declaring and/or initializing filesystem resource locations. The default is true (ignore hidden files).


getIgnoreHidden

public static boolean getIgnoreHidden()

getName

public java.lang.String getName()
Specified by:
getName in interface IArchive

getType

public java.lang.String getType()
Specified by:
getType in interface IArchive

getms_IgnoreHidden

public static boolean getms_IgnoreHidden()

setms_IgnoreHidden

public static void setms_IgnoreHidden(boolean _jni_value_)


Copyright © 2007 netAllied GmbH. All Rights Reserved.