com.jFormTK
Class JarResources

java.lang.Object
  extended by com.jFormTK.JarResources
All Implemented Interfaces:
JConstants

public final class JarResources
extends java.lang.Object
implements JConstants

        JarResources: JarResources maps all resources included in a
        Zip or Jar file. Additionaly, it provides a method to extract one
        as a blob.

        Baselined from 'JavaWorld' Java Tip 49... 11/13/2003
 
        Kernel Usage:
        1)      Used by 'jFormTK.JHDD_IO' Class to service Image File request from the
                Application Images JAR File AND the 'jFormTK' Images Jar file iff
                the requested Image File is NOT found in the /images Folder on the Platform
                Host HDD.
 
        NOTE:   The file search order is as follows:
                        1)      /images Sub-Folder of the 'jFormTK' Application Host HDD.
                        2)      Application Images JAR File.
                        3)      'jFormTK' Kernel Images JAR FRile.
        

Version:
1.00,
Author:
Jim Crowell
Professional Computer Solutions [PCS]
URL: http://jFormTK.com/
E-Mail: JimCrowell@EMail.com

Copyright (c) 2009 by Professional Computer Solutions [PCS]
All Rights Reserved

Field Summary
 boolean debugOn
           
 
Fields inherited from interface com.jFormTK.JConstants
__, _AB, _AB_, _AField, _B, _BField, _CField, _CIField, _DField, _EU_, _H, _HEIGHT, _HEIGHT_INV, _HField, _I, _IField, _LField, _MField, _NField, _NotRequired, _PField, _PIField, _QField, _Required, _RField, _TAField, _TField, _WIDTH, _WIDTH_INV, _XField, AB, APP_TRACE_FOCUS, APP_TRACE_GET, APP_TRACE_SET, B_, BAR, BAR_, BB, BH, BI, BREAKPOINT_FOCUS, BREAKPOINT_GET, BREAKPOINT_SET, BVB, C_QUOTE, CLOSE, CLOSE_BRACKET, COLORS_DELIMITER, COMMA, COMMA_, D_ELEMENT, D_ELEMENT_N, D_ELEMENT_N1, D_ELEMENT_N2, D_ELEMENT_N3, D_FIELDS, D_FIELDS_N, D_FIELDS_N1, D_FIELDS_N2, D_FIELDS_N3, D_ITEMS, DASH, DOT, EOL, EOP, EOS, FIELD_TRACE_FOCUS, FIELD_TRACE_GET, FIELD_TRACE_SET, FONT_DELIMITER, H_, HB, HH, HI, I_, IB, IH, II, JLAF_DELIMITER, LF, LISTBRACKET, NO, OPEN, OPEN_BRACKET, pCheckboxGroup, QUOTE, SPACE_, TAB, YES
 
Constructor Summary
JarResources(java.lang.String jarFileName)
           
 
Method Summary
 java.lang.String[] getNames(java.lang.String folder, boolean sort)
          get a String Array of the Files of *this* JAR File...
 byte[] getResource(java.lang.String nameIn)
          Extracts a jar resource as a blob.
 java.lang.String getString(java.lang.String fileName)
          Returns the 'blob' for the given File Name [fileName]
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

debugOn

public boolean debugOn
Constructor Detail

JarResources

public JarResources(java.lang.String jarFileName)
Method Detail

getNames

public java.lang.String[] getNames(java.lang.String folder,
                                   boolean sort)
get a String Array of the Files of *this* JAR File...

Parameters:
folder -
sort -
Returns:
String Array of matching Names...

getResource

public byte[] getResource(java.lang.String nameIn)
Extracts a jar resource as a blob.

Parameters:
nameIn - a resource name.

getString

public java.lang.String getString(java.lang.String fileName)
Returns the 'blob' for the given File Name [fileName]

Parameters:
fileName - File Name [String] to retrieve...
Returns:
the 'blob' for the found File Name