public class DWGReadParser extends AbstractDWGParser
https://github.com/LibreDWG/libredwg
DWGRead outputs json which we then loop through extracting the text elements The required configuration is dwgReadExecutable. The other settings which can be overwritten are:
boolean : cleanDwgReadOutput - whether to clean the json output
int : cleanDwgReadOutputBatchSize - clean output batch size to process
long : dwgReadTimeout -timeout in milliseconds before killing the dwgread process
String : cleanDwgReadRegexToReplace - characters to replace in the json
String : cleanDwgReadReplaceWith - * replacement characters dwgReadExecutable
| Constructor and Description |
|---|
DWGReadParser() |
| Modifier and Type | Method and Description |
|---|---|
Set<org.apache.tika.mime.MediaType> |
getSupportedTypes(org.apache.tika.parser.ParseContext context) |
void |
parse(InputStream stream,
ContentHandler handler,
org.apache.tika.metadata.Metadata metadata,
org.apache.tika.parser.ParseContext context) |
configure, getCleanDwgReadOutputBatchSize, getCleanDwgReadRegexToReplace, getCleanDwgReadReplaceWith, getDwgReadExecutable, getDwgReadTimeout, isCleanDwgReadOutput, setCleanDwgReadOutput, setCleanDwgReadOutputBatchSize, setCleanDwgReadRegexToReplace, setCleanDwgReadReplaceWith, setDwgReadExecutable, setDwgReadTimeoutpublic Set<org.apache.tika.mime.MediaType> getSupportedTypes(org.apache.tika.parser.ParseContext context)
public void parse(InputStream stream, ContentHandler handler, org.apache.tika.metadata.Metadata metadata, org.apache.tika.parser.ParseContext context) throws IOException, SAXException, org.apache.tika.exception.TikaException
IOExceptionSAXExceptionorg.apache.tika.exception.TikaExceptionCopyright © 2007–2025 The Apache Software Foundation. All rights reserved.