Sample Java Docs
Sample Java Docs
MainWindow .................................................................................................................................. 2
Pbar ............................................................................................................................................... 3
Receiver ........................................................................................................................................ 4
SendWindow ................................................................................................................................. 5
Sender ........................................................................................................................................... 6
Index.............................................................................................................................................. 9
Class MainWindow
java.lang.Object
|
+--java.awt.Component
|
+--java.awt.Container
|
+--java.awt.Window
|
+--java.awt.Frame
|
+--javax.swing.JFrame
|
+--MainWindow
All Implemented Interfaces:
java.awt.MenuContainer, java.awt.image.ImageObserver, java.io.Serializable,
javax.accessibility.Accessible, javax.swing.RootPaneContainer,
javax.swing.TransferHandler.HasGetTransferHandler, javax.swing.WindowConstants
< Fields > < Constructors > < Methods >
public class MainWindow
extends javax.swing.JFrame
Major Project - A Novel Approach to Text Steganography Main Window Module - Generates Welcome
Window for the Application
Author:
Anirudra Diwakar [01996502710] - Lead Programmer
Author:
Shailja Upadhyaya [01896502710] - Programmer & Lead Tester
Author:
Jatin Gupta [04996502710] - GUI Designer
Version:
Stable v1.0.1 15-April-2014 USE JRE 7 or higher.
Fields
c_file
public java.io.File c_file
c_file and r_file are File variables for holding sender side and receiver side files. contentPane is
the main window Panel which displays "Send" or "Receive" options. flag is used for progress bar
synchronization.
r_file
public java.io.File r_file
c_file and r_file are File variables for holding sender side and receiver side files. contentPane is
the main window Panel which displays "Send" or "Receive" options. flag is used for progress bar
synchronization.
Constructors
MainWindow
public
MainWindow()
Methods
main
public static void main(java.lang.String[] args)
Launch the application. (Main Method)
Class Pbar
java.lang.Object
|
+--Pbar
< Constructors >
public class Pbar
extends java.lang.Object
Major Project - A Novel Approach to Text Steganography Pbar module - Generates an indeterminate
Progress Bar Pbar class generates an indeterminate Progress Bar and displays text "Loading", when
critical operations are being performed by the program. The control of progress bars is managed by a
global variable flag. The static block used here performs critical initializations to the display at runtime.
The progress bar is placed at middle of end user's screen no matter what the current window resolution is.
Version:
Stable v1.0.1 15-April-2014
Constructors
Pbar
public
Pbar()
Constructor for Pbar class. Generates a new frame and setup the display. A new minimum priority
thread is created for the progress bar.
Class Receiver
java.lang.Object
|
+--Receiver
< Constructors > < Methods >
public class Receiver
extends java.lang.Object
Major Project - A Novel Approach to Text Steganography Receiver Module - Generates the window for
Receiver
Version:
Stable v1.0.1 15-April-2014
Constructors
Receiver
public
Receiver()
Methods
detect_message
public static void detect_message()
throws java.io.IOException
detect_message(void) is used to detect the binary information hidden in cover file.
Throws:
java.io.IOException -
main
public static void main(java.lang.String[] args)
read_file
public static void read_file(java.io.File rfile)
read_file is basic function to perform Read operation on a file
Parameters:
rfile - The file to be read.
Class SendWindow
java.lang.Object
|
+--java.awt.Component
|
+--java.awt.Container
|
+--java.awt.Window
|
+--java.awt.Frame
|
+--javax.swing.JFrame
|
+--SendWindow
All Implemented Interfaces:
java.awt.MenuContainer, java.awt.image.ImageObserver, java.io.Serializable,
javax.accessibility.Accessible, javax.swing.RootPaneContainer,
javax.swing.TransferHandler.HasGetTransferHandler, javax.swing.WindowConstants
< Fields > < Constructors >
public class SendWindow
extends javax.swing.JFrame
Major Project - A Novel Approach to Text Steganography Send Window Module - Generates the window
for sender
Version:
Stable v1.0.1 15-April-2014
Fields
contentPane
Constructors
SendWindow
public
SendWindow(int capacity,
java.lang.String fn)
Constructor for Sender's Window. Initializes the display & performs setup for selection of text
message/file.
Parameters:
capacity - The capacity of cover file.
fn - The absolute path to cover file.
Class Sender
java.lang.Object
|
+--Sender
< Constructors > < Methods >
public class Sender
extends java.lang.Object
Major Project - A Novel Approach to Text Steganography Sender Module - Core Module for sender's
operations.
Version:
Stable v1.0.1 15-April-2014
Constructors
Sender
public
Sender()
Methods
isValidName
public static boolean isValidName(java.lang.String text)
isValidName(String text) validates file names using regular expression pattern matcher. This is the
first stage of file name validation.
Parameters:
text - Holds the name of file to be validated.
Returns:
read_cover_file
public static int read_cover_file(java.io.File c_file)
throws java.io.FileNotFoundException
read_cover_file(File c_file) is the core method for reading the cover file document.
Parameters:
c_file - Holds the cover file.
Returns:
Returns adjusted capacity.
Throws:
java.io.FileNotFoundException -
send
public static void send(java.lang.String s)
send(String s) - Send Method used to hide message.
Parameters:
s - File name which is to be written.
take_input_file
public static void take_input_file(java.io.File file)
throws java.io.IOException
take_input_file(File file) takes a file as input. This file is converted to binary ascii and hidden.
Parameters:
file - The file to be hidden.
Throws:
java.io.IOException -
take_input_message
public static void take_input_message(java.lang.String text)
take_input_message(String text) Core method to implement hiding of text messages. Also
performs crude capacity checking.
Parameters:
text - Holds the text to be hidden.
INDEX
C
c_file ... 2
contentPane ... 5
D
detect_message ... 4
I
isValidName ... 7
M
main ... 3
main ... 5
MainWindow ... 2
MainWindow ... 3
P
Pbar ... 3
Pbar ... 4
R
r_file ... 3
read_cover_file ... 7
read_file ... 5
Receiver ... 4
Receiver ... 4
S
send ... 7
Sender ... 6
Sender ... 6
SendWindow ... 5
SendWindow ... 6
T
take_input_file ... 7
take_input_message ... 8