| | |
| | | public void logElement(Element element, String currentSchema) |
| | | { |
| | | if ((this.currentSchema == null) || |
| | | (!this.currentSchema.equalsIgnoreCase(currentSchema))) |
| | | (!this.currentSchema.equalsIgnoreCase(currentSchema))) |
| | | { |
| | | schemaChanged = true; |
| | | this.currentSchema = currentSchema; |
| | |
| | | while (logFile.exists()) |
| | | { |
| | | logFile = new File(getDataOutPath(), this.currentSchema + "-" |
| | | + (++logCount) +".dgn"); |
| | | + (++logCount) + ".dgn"); |
| | | } |
| | | |
| | | logger.warn("Create Dgn Logging File:" + logFile.toString()); |
| | |
| | | } |
| | | |
| | | is.close(); |
| | | assert buffer != null; |
| | | buffer.position(0); |
| | | raw = buffer.array(); |
| | | } catch (IOException e) |