Mallet Engine  2
Entity-Component based game engine, written in Java.
 All Classes Namespaces Files Functions Variables
Public Member Functions
com.linxonline.mallet.io.filesystem.FileSystem Interface Reference
Inheritance diagram for com.linxonline.mallet.io.filesystem.FileSystem:
Inheritance graph
[legend]

List of all members.

Public Member Functions

void scanBaseDirectory ()
byte[] getResourceRaw (final String _file)
String getResourceAsString (final String _file)
boolean getResourceRaw (final String _file, final ResourceCallback _callback)
boolean getResourceAsString (final String _file, final ResourceCallback _callback)
boolean writeResourceAsString (final String _file, final String _data)
boolean writeResourceRaw (final String _file, final byte[] _data)
boolean doesResourceExist (final String _file)
boolean deleteResource (final String _file)

Detailed Description

The Aim of the File System is to scan available resources located in the base directory.

Resources are then mapped to allow generic and easy access to all content. If a resource is accessed but has not been mapped, then it should be mapped first.


Member Function Documentation

boolean com.linxonline.mallet.io.filesystem.FileSystem.getResourceAsString ( final String  _file,
final ResourceCallback  _callback 
)

Blocks calling Thread

Implemented in com.linxonline.mallet.io.filesystem.DesktopFileSystem.

boolean com.linxonline.mallet.io.filesystem.FileSystem.getResourceRaw ( final String  _file,
final ResourceCallback  _callback 
)

Doesn't block calling Thread, when resource has started reading, it'll call ResourceCallback. Return boolean informs whether it successfully started reading.

Implemented in com.linxonline.mallet.io.filesystem.DesktopFileSystem.

boolean com.linxonline.mallet.io.filesystem.FileSystem.writeResourceAsString ( final String  _file,
final String  _data 
)

Blocks calling Thread

Implemented in com.linxonline.mallet.io.filesystem.DesktopFileSystem.

boolean com.linxonline.mallet.io.filesystem.FileSystem.writeResourceRaw ( final String  _file,
final byte[]  _data 
)

The documentation for this interface was generated from the following file:
 All Classes Namespaces Files Functions Variables