Class MPackageWriter
java.lang.Object
com.io7m.montarre.io.internal.MPackageWriter
-
Constructor Summary
ConstructorsConstructorDescriptionMPackageWriter(MPackageDeclarationSerializerFactoryType inSerializers, HashMap<String, Object> inAttributes, OutputStream inStream, BufferedOutputStream inBuffered, Path inFile, Path inFileTmp, MPackageDeclaration inPackageV) A package writer. -
Method Summary
-
Constructor Details
-
MPackageWriter
public MPackageWriter(MPackageDeclarationSerializerFactoryType inSerializers, HashMap<String, Object> inAttributes, OutputStream inStream, BufferedOutputStream inBuffered, Path inFile, Path inFileTmp, MPackageDeclaration inPackageV) A package writer.- Parameters:
inSerializers- The serializer factoryinAttributes- The error attributesinStream- The output streaminBuffered- The buffered outputinFile- The fileinFileTmp- The temporary fileinPackageV- The package declaration
-
-
Method Details
-
start
-
addFile
Description copied from interface:MPackageWriterTypeAdd a file to the package.- Specified by:
addFilein interfaceMPackageWriterType- Parameters:
name- The file namefile- The file- Throws:
MException- On errors
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceMPackageWriterType- Throws:
MException
-
packFrom
Description copied from interface:MPackageWriterTypePack all files in the given directory hierarchy.- Specified by:
packFromin interfaceMPackageWriterType- Parameters:
inputDirectory- The input directory- Throws:
MException
-