Package org.apache.tika.parser.dwg
Class DWGParser
- java.lang.Object
-
- org.apache.tika.parser.AbstractParser
-
- org.apache.tika.parser.dwg.AbstractDWGParser
-
- org.apache.tika.parser.dwg.DWGParser
-
- All Implemented Interfaces:
Serializable,org.apache.tika.parser.Parser
public class DWGParser extends AbstractDWGParser
DWG (CAD Drawing) parser. This is a very basic parser, which just looks for bits of the headers. Note that we use Apache POI for various parts of the processing, as lots of the low level string/int/short concepts are the same.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static StringDWG_CUSTOM_META_PREFIX
-
Constructor Summary
Constructors Constructor Description DWGParser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<org.apache.tika.mime.MediaType>getSupportedTypes(org.apache.tika.parser.ParseContext context)voidparse(InputStream stream, ContentHandler handler, org.apache.tika.metadata.Metadata metadata, org.apache.tika.parser.ParseContext context)-
Methods inherited from class org.apache.tika.parser.dwg.AbstractDWGParser
configure, getCleanDwgReadOutputBatchSize, getCleanDwgReadRegexToReplace, getCleanDwgReadReplaceWith, getDwgReadExecutable, getDwgReadTimeout, isCleanDwgReadOutput, setCleanDwgReadOutput, setCleanDwgReadOutputBatchSize, setCleanDwgReadRegexToReplace, setCleanDwgReadReplaceWith, setDwgReadExecutable, setDwgReadTimeout
-
-
-
-
Field Detail
-
DWG_CUSTOM_META_PREFIX
public static String DWG_CUSTOM_META_PREFIX
-
-
Method Detail
-
getSupportedTypes
public Set<org.apache.tika.mime.MediaType> getSupportedTypes(org.apache.tika.parser.ParseContext context)
-
parse
public void parse(InputStream stream, ContentHandler handler, org.apache.tika.metadata.Metadata metadata, org.apache.tika.parser.ParseContext context) throws IOException, org.apache.tika.exception.TikaException, SAXException
- Throws:
IOExceptionorg.apache.tika.exception.TikaExceptionSAXException
-
-