Module io.annot8.components.files
Class ArchiveExtractor.Settings
- java.lang.Object
-
- io.annot8.components.files.processors.RemoveSourceContentSettings
-
- io.annot8.components.files.processors.ArchiveExtractor.Settings
-
- All Implemented Interfaces:
io.annot8.api.settings.Settings
- Enclosing class:
- ArchiveExtractor
public static class ArchiveExtractor.Settings extends RemoveSourceContentSettings
-
-
Constructor Summary
Constructors Constructor Description Settings()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<com.j256.simplemagic.ContentType>getContentTypes()booleanisAcceptNullContentType()booleanisDiscardItem()voidsetAcceptNullContentType(boolean acceptNullContentType)voidsetContentTypes(List<com.j256.simplemagic.ContentType> contentTypes)voidsetDiscardItem(boolean discardItem)-
Methods inherited from class io.annot8.components.files.processors.RemoveSourceContentSettings
isRemoveSourceContent, setRemoveSourceContent, validate
-
-
-
-
Method Detail
-
isDiscardItem
@Description("If true, this entire Item will be discarded after successful extraction") public boolean isDiscardItem()
-
setDiscardItem
public void setDiscardItem(boolean discardItem)
-
getContentTypes
@Description("List of content types to allow - if the detected content type is not on this list, then it will not be treated as an archive. An empty list will cause the processor to try to parse all Files and InputStreams.") public List<com.j256.simplemagic.ContentType> getContentTypes()
-
setContentTypes
public void setContentTypes(List<com.j256.simplemagic.ContentType> contentTypes)
-
isAcceptNullContentType
@Description("Determines whether the processor should try to parse Files and InputStreams where the content type cannot be determined") public boolean isAcceptNullContentType()
-
setAcceptNullContentType
public void setAcceptNullContentType(boolean acceptNullContentType)
-
-