|
|||||||||
| Home >> All >> org >> ematgine >> utils >> parser >> [ files overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.ematgine.utils.parser.files
Class FileParser

java.lang.Objectorg.ematgine.utils.parser.files.FileParser
- public class FileParser
- extends java.lang.Object
| Field Summary | |
private java.lang.String |
filelink
Filepath with filename |
private boolean |
firstPartSpecialProcessing
Description of the Field |
private java.lang.Long |
partBeginning
description of part of file |
private java.lang.Long |
partLength
description of part of file |
private java.lang.Integer |
partNumber
description of part of file |
private java.lang.Integer |
partTotalNumber
description of part of file |
private java.io.File |
the_file
File |
private java.io.FileInputStream |
the_file_input_stream
File Input Stream used by several method |
| Constructor Summary | |
FileParser(java.lang.String filename)
Constructor |
|
FileParser(java.lang.String filename,
java.lang.Long begin,
java.lang.Long length,
java.lang.Integer nb,
java.lang.Integer nbTotal)
Constructor for the FileParser object if the file is a part of file |
|
FileParser(java.lang.String directory,
java.lang.String filename)
Constructor |
|
| Method Summary | |
void |
endParsing()
close the file to end the parsing |
java.lang.String |
getFilename()
Gets the filename attribute of the FileParser object |
private java.lang.String |
getFileSeparator()
get the file separator according to the file system |
boolean |
getfirstPartSpecialProcessing()
Description of the Method |
java.lang.String |
getNextSQLRequest()
extract the next SQL request from the file |
java.lang.String |
getPartFilename()
Gets the partFilename attribute of the FileParser object |
boolean |
isAvailable()
is there any information left in the file |
boolean |
isfirstPart()
Description of the Method |
static void |
join(java.lang.String file1,
java.lang.String file2)
join file2 at the end of file1 |
void |
setfirstPartSpecialProcessing(boolean go)
Constructor for the setFirstPartSpecialTreatment object |
void |
startParsing()
open the file to start the parsing |
byte[] |
transformPartOfFileToBase64ByteArray()
Gets the base64BytesArrayFromPartOfFile attribute of the SMTPJavamail object |
byte[] |
transformPartOfFileToSpecialBase64ByteArray()
Gets the base64BytesArrayFromPartOfFile attribute of the SMTPJavamail object |
byte[] |
transformToBase64HTMLFileByteArray()
Generate a Base 64 byte array from the file |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
filelink
private java.lang.String filelink
- Filepath with filename
the_file
private java.io.File the_file
- File
the_file_input_stream
private java.io.FileInputStream the_file_input_stream
- File Input Stream used by several method
partBeginning
private java.lang.Long partBeginning
- description of part of file
partLength
private java.lang.Long partLength
- description of part of file
partNumber
private java.lang.Integer partNumber
- description of part of file
partTotalNumber
private java.lang.Integer partTotalNumber
- description of part of file
firstPartSpecialProcessing
private boolean firstPartSpecialProcessing
- Description of the Field
| Constructor Detail |
FileParser
public FileParser(java.lang.String filename, java.lang.Long begin, java.lang.Long length, java.lang.Integer nb, java.lang.Integer nbTotal)
- Constructor for the FileParser object if the file is a part of file
FileParser
public FileParser(java.lang.String directory, java.lang.String filename)
- Constructor
FileParser
public FileParser(java.lang.String filename)
- Constructor
| Method Detail |
setfirstPartSpecialProcessing
public void setfirstPartSpecialProcessing(boolean go)
- Constructor for the setFirstPartSpecialTreatment object
getfirstPartSpecialProcessing
public boolean getfirstPartSpecialProcessing()
- Description of the Method
isfirstPart
public boolean isfirstPart()
- Description of the Method
startParsing
public void startParsing()
- open the file to start the parsing
endParsing
public void endParsing()
- close the file to end the parsing
isAvailable
public boolean isAvailable()
- is there any information left in the file
getNextSQLRequest
public java.lang.String getNextSQLRequest() throws java.lang.Exception
- extract the next SQL request from the file
getFileSeparator
private java.lang.String getFileSeparator()
- get the file separator according to the file system
join
public static void join(java.lang.String file1, java.lang.String file2) throws java.lang.Exception
- join file2 at the end of file1
transformToBase64HTMLFileByteArray
public byte[] transformToBase64HTMLFileByteArray()
throws java.lang.Exception
- Generate a Base 64 byte array from the file
transformPartOfFileToBase64ByteArray
public byte[] transformPartOfFileToBase64ByteArray()
- Gets the base64BytesArrayFromPartOfFile attribute of the SMTPJavamail
object
transformPartOfFileToSpecialBase64ByteArray
public byte[] transformPartOfFileToSpecialBase64ByteArray()
- Gets the base64BytesArrayFromPartOfFile attribute of the SMTPJavamail
object
getFilename
public java.lang.String getFilename()
- Gets the filename attribute of the FileParser object
getPartFilename
public java.lang.String getPartFilename()
- Gets the partFilename attribute of the FileParser object
|
|||||||||
| Home >> All >> org >> ematgine >> utils >> parser >> [ files overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
org.ematgine.utils.parser.files.FileParser