|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.openstego.util.CommonUtil
Common utilities for OpenStego
| Constructor Summary | |
CommonUtil()
|
|
| Method Summary | |
static byte[] |
getFileBytes(java.io.File file)
Method to get byte array data from given file |
static byte[] |
getStreamBytes(java.io.InputStream is)
Method to get byte array data from given InputStream |
static void |
setEnabled(javax.swing.JTextField textField,
boolean enabled)
Method to enable/disable a Swing JTextField object |
static void |
writeFile(byte[] fileData,
java.lang.String fileName)
Method to write file data to disk |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public CommonUtil()
| Method Detail |
public static byte[] getStreamBytes(java.io.InputStream is)
throws OpenStegoException
is - InputStream to read
OpenStegoException
public static byte[] getFileBytes(java.io.File file)
throws OpenStegoException
file - File to read
OpenStegoException
public static void writeFile(byte[] fileData,
java.lang.String fileName)
throws OpenStegoException
fileData - File datafileName - File name (If this is null, then data is written to stdout)
OpenStegoException
public static void setEnabled(javax.swing.JTextField textField,
boolean enabled)
textField - Swing JTextField objectenabled - Flag to indicate whether to enable or disable the object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||