public class IOTools extends java.lang.Object implements DistributorConstants
| Modifier and Type | Field and Description | 
|---|---|
| static java.lang.String | CLASS_VERSIONClass version string | 
DEBUG_PREFIX, DEFAULT_FILE_BUFFER_SIZE, ERROR_PREFIX, FAILURE_FLAG, FILECHECK_CMD, INFO_PREFIX, MAX_RETRIES_FOR_FILE_ACCESS, MY_RESOURCE_NAME, PUT_CMD, SUCCESS_FLAG, WARNING_PREFIX| Constructor and Description | 
|---|
| IOTools()Constructs an instanceof IOTools | 
| Modifier and Type | Method and Description | 
|---|---|
| static java.io.FileInputStream | openFileForReading(java.io.File pFile,
                  ApplicationLogging pLog)Attempt to open a FileInputStream based on the supplied file. | 
| static java.io.FileOutputStream | openFileForWriting(java.io.File pFile,
                  ApplicationLogging pLog)Attempt to open a FileOutputStream based on the supplied file. | 
| static boolean | writeFile(java.io.File pFilePath,
         long pFileSize,
         java.io.DataInputStream pInput,
         ApplicationLogging pLog)Reads the data from the supplied input stream and writes the data to the given file | 
public static java.io.FileOutputStream openFileForWriting(java.io.File pFile,
                                          ApplicationLogging pLog)
                                                   throws java.io.IOException
java.io.IOException - if an error occurs while attempting to open the file for writingpublic static java.io.FileInputStream openFileForReading(java.io.File pFile,
                                         ApplicationLogging pLog)
                                                  throws java.io.IOException
java.io.IOException - if an error occurs while attempting to open the file for writingpublic static boolean writeFile(java.io.File pFilePath,
                long pFileSize,
                java.io.DataInputStream pInput,
                ApplicationLogging pLog)
                         throws java.io.IOException
pFilePath - the file to store the data sentpFileSize - the total amount of bytes that are being sent from the clientpInput - the input stream to read from the clientjava.io.IOException