prettify.example
Class Example

java.lang.Object
  extended by prettify.example.Example

public class Example
extends java.lang.Object

Usage example. This will just cover some of the functions. To know other available functions, please read the JavaDoc.

Author:
Chan Wai Shing

Constructor Summary
Example()
           
 
Method Summary
static void main(java.lang.String[] args)
           
static byte[] readResourceFile(java.lang.String path)
          Read the resource file from the jar.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Example

public Example()
Method Detail

readResourceFile

public static byte[] readResourceFile(java.lang.String path)
                               throws java.io.IOException
Read the resource file from the jar.

Parameters:
path - the resource path
Returns:
the content of the resource file in byte array
Throws:
java.io.IOException - error occurred when reading the content from the file

main

public static void main(java.lang.String[] args)