Main Page Cookbook/Overview ImageMeister the jcprops file Licensing Binary Installation & Configuration [ Win · Mac · Nix ] Changes Public API Source Code Main Page Java [ Common · Win · Mac · Nix ] Native Code [ Common · Win · Mac · Nix ] Manifest Native Code Overviews [ Common · Win · Mac · Nix · Strings ] Macros [ General · Native Macros ] Walkthroughs [ Java only · Java and native ] Building [ Win · Mac · Nix ] Distribution Issues

    All Packages  This Package  Class Hierarchy  Class Search  Index

Class com.jconfig.mac.ResourceForkMRJ

    java.lang.Object
       |
       +----com.jconfig.mac.ResourceForkMRJ

Summary

    class  ResourceForkMRJ
         extends java.lang.Object
         implements com.jconfig.ResourceFork
    {
              // Fields 3
         private static final String copyrightString;
         private DiskFileMRJ diskFile;
         private ResFileMRJ resFileMRJ;

              // Constructors 1
         public ResourceForkMRJ(DiskFileMRJ);

              // Methods 9
         public void closeResources() throws ResourceForkException;
         public void deleteResourceFork() throws ResourceForkException;
         public void dumpInfo(PrintStream, String);
         public DiskFile getDiskFile();
         public byte[] getRawResourceFork() throws ResourceForkException;
         public byte[] getResource(int, int) throws ResourceForkException;
         public long getResourceForkSize() throws ResourceForkException;
         public void openResources(int, int) throws ResourceForkException, IOException;
         public void setRawResourceFork(byte[]) throws ResourceForkException;
    }

Implements the DiskFile interface on the Mac. See that interface for more information. Most of the methods call methods in AppUtilsMRJ to obtain system information using native code.

Author:
  Copyright (c) 1997,1998,1999,2000 Samizdat Productions. All Rights Reserved.

Fields

### · copyrightString | Summary | Top

       private static final String copyrightString

### · diskFile | Summary | Top

       private DiskFileMRJ diskFile

### · resFileMRJ | Summary | Top

       private ResFileMRJ resFileMRJ

Constructors

### · ResourceForkMRJ | Summary | Top

       public ResourceForkMRJ(DiskFileMRJ diskFile)

Methods

### · getDiskFile | Summary | Top

       public DiskFile getDiskFile()

> Returns the DiskFile object with which this resource fork is associated.

> Implements:
>   getDiskFile in interface ResourceFork

### · getRawResourceFork | Summary | Top

       public byte[] getRawResourceFork()  throws ResourceForkException

> Returns the raw resource fork of this file. Only valid on Mac. The resource fork length must be less than Integer.MAX_VALUE. If there is no resource fork, or if an error occurs, returns null.

> Implements:
>   getRawResourceFork in interface ResourceFork

### · setRawResourceFork | Summary | Top

       public void setRawResourceFork(byte[] data)  throws ResourceForkException

> Sets the raw resource fork of this file.

> Parameter | Description
> data | contains the raw resource fork. Must have length >= 1

> Implements:
>   setRawResourceFork in interface ResourceFork

### · deleteResourceFork | Summary | Top

       public void deleteResourceFork()  throws ResourceForkException

> Deletes the resource fork.

> Implements:
>   deleteResourceFork in interface ResourceFork

### · getResourceForkSize | Summary | Top

       public long getResourceForkSize()  throws ResourceForkException

> Returns the size of this resource fork.

> Implements:
>   getResourceForkSize in interface ResourceFork

### · dumpInfo | Summary | Top

       public void dumpInfo(PrintStream ps,
                            String indent)

### · openResources | Summary | Top

       public void openResources(int mode,
                                 int perms)  throws ResourceForkException, IOException

> Implements:
>   openResources in interface ResourceFork

### · getResource | Summary | Top

       public byte[] getResource(int resName,
                                 int resID)  throws ResourceForkException

> Implements:
>   getResource in interface ResourceFork

### · closeResources | Summary | Top

       public void closeResources()  throws ResourceForkException

> Implements:
>   closeResources in interface ResourceFork

    All Packages  This Package  Class Hierarchy  Class Search  Index

Freshly brewed Java API Documentation automatically generated with polardoc Version 1.0.7