au.edu.archer.service.ddm.impl
Class FileSplitServiceImpl

java.lang.Object
  extended by au.edu.archer.service.ddm.impl.FileSplitServiceImpl
All Implemented Interfaces:
FileSplitService

public class FileSplitServiceImpl
extends java.lang.Object
implements FileSplitService

FileSplitter by Steve Androulakis - Splits a file into separate files at the specified size

Use static method splitFile(file[, outputDir, volumeSize]) where file is the file to be split, outputDir (optional) is the output directory for the split set, and volumeSize (optional) is the split file size (in mb)

Version:
1.0
Author:
Steve Androulakis (Monash University)

Constructor Summary
FileSplitServiceImpl()
           
 
Method Summary
 java.util.ArrayList<byte[]> splitFile(byte[] content, float volumeSize)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileSplitServiceImpl

public FileSplitServiceImpl()
Method Detail

splitFile

public java.util.ArrayList<byte[]> splitFile(byte[] content,
                                             float volumeSize)
Specified by:
splitFile in interface FileSplitService
Parameters:
fileName - The name of the file that is to be split
outputDir - The output directory of the split set
volumeSize - The size the file is to be split by (in megabytes)


Copyright © 2008-09 Monash University. All Rights Reserved.