public class ContentUtil extends Object
Modifier and Type | Method and Description |
---|---|
static List<Content> |
buildContentFromClassList(List<javassist.CtClass> classList,
org.apache.commons.compress.archivers.zip.ZipArchiveOutputStream zipOutputStream,
Set<String> reservedNames,
File buildDirectory,
String componentPathBase,
String defaultComponentPathSuffix,
String defaultComponentGroup,
ComponentNameTransformer transformer)
Constructs a list of Content objects representing .content.xml files from
a list of Classes.
|
static void |
writeContentToArchiveFile(ComponentNameTransformer transformer,
File contentFile,
javassist.CtClass componentClass,
org.apache.commons.compress.archivers.zip.ZipArchiveOutputStream archiveStream,
Set<String> reservedNames,
String componentPathBase,
String defaultComponentPathSuffix)
Writes a provided content file to a provided archive output stream at a
path determined by the class of the component.
|
static File |
writeContentToFile(ComponentNameTransformer transformer,
Content content,
javassist.CtClass componentClass,
File buildDirectory,
String componentPathBase,
String defaultComponentPathSuffix)
Write the content.xml to an output file, the path of which is determined
by the component class
|
public static File writeContentToFile(ComponentNameTransformer transformer, Content content, javassist.CtClass componentClass, File buildDirectory, String componentPathBase, String defaultComponentPathSuffix) throws TransformerException, ParserConfigurationException, IOException, OutputFailureException, ClassNotFoundException, IllegalArgumentException, SecurityException, IllegalAccessException, InvocationTargetException, NoSuchMethodException
content
- componentClass
- TransformerException
ParserConfigurationException
IOException
OutputFailureException
ClassNotFoundException
NoSuchMethodException
InvocationTargetException
IllegalAccessException
SecurityException
IllegalArgumentException
public static void writeContentToArchiveFile(ComponentNameTransformer transformer, File contentFile, javassist.CtClass componentClass, org.apache.commons.compress.archivers.zip.ZipArchiveOutputStream archiveStream, Set<String> reservedNames, String componentPathBase, String defaultComponentPathSuffix) throws IOException, ClassNotFoundException
contentFile
- componentClass
- archiveStream
- reservedNames
- A list of files which already exist within the Zip
Archive. If a .content.xml file already exists for a
particular component, it is left untouched.componentPathBase
- IOException
ClassNotFoundException
public static List<Content> buildContentFromClassList(List<javassist.CtClass> classList, org.apache.commons.compress.archivers.zip.ZipArchiveOutputStream zipOutputStream, Set<String> reservedNames, File buildDirectory, String componentPathBase, String defaultComponentPathSuffix, String defaultComponentGroup, ComponentNameTransformer transformer) throws InvalidComponentClassException, TransformerException, ParserConfigurationException, IOException, OutputFailureException, ClassNotFoundException, IllegalArgumentException, SecurityException, IllegalAccessException, InvocationTargetException, NoSuchMethodException
classList
- zipOutputStream
- reservedNames
- InvalidComponentClassException
TransformerException
ParserConfigurationException
IOException
OutputFailureException
ClassNotFoundException
NoSuchMethodException
InvocationTargetException
IllegalAccessException
SecurityException
IllegalArgumentException
Copyright © 2019 ICF Olson. All rights reserved.