ResourceManager
Class Resource

java.lang.Object
  |
  +--ResourceManager.Resource

public class Resource
extends java.lang.Object

Resource: Resource reads and holds the binary data of a MacOS Resource and all pertinent information: the ID, name, and size. Public accessor methods are provided to access the info


Constructor Summary
Resource()
           
 
Method Summary
 byte[] getData()
          Returns the raw byte data of the Resource - the heart of the Resource
 short getID()
          Returns the numeric ID of the Resource
 java.lang.String getName()
          Returns the name of Resource, if any.
 void print(java.io.PrintStream ps)
          Dumps the Resource information (not including data) to a Stream
 int size()
          Returns the size of the Resource data
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Resource

public Resource()
Method Detail

print

public void print(java.io.PrintStream ps)
Dumps the Resource information (not including data) to a Stream
Parameters:
ps - the PrintStream to print the info

getID

public short getID()
Returns the numeric ID of the Resource

size

public int size()
Returns the size of the Resource data

getName

public java.lang.String getName()
Returns the name of Resource, if any. This could be null

getData

public byte[] getData()
Returns the raw byte data of the Resource - the heart of the Resource