@Test public void testGetNameFileChunkRecord() { String basename = "basename"; assertEquals(basename + "-chunk1-record2.xml", parseEvtx.getName(basename, 1, 2, ParseEvtx.XML_EXTENSION)); }
protected String getName(String basename, Object chunkNumber, Object recordNumber, String extension) { StringBuilder stringBuilder = new StringBuilder(basename); if (chunkNumber != null) { stringBuilder.append("-chunk"); stringBuilder.append(chunkNumber); } if (recordNumber != null) { stringBuilder.append("-record"); stringBuilder.append(recordNumber); } stringBuilder.append(extension); return stringBuilder.toString(); }
ParseEvtx extends AbstractProcessor { protected String getName(String basename, Object chunkNumber, Object recordNumber, String extension) { StringBuilder stringBuilder = new StringBuilder(basename); if (chunkNumber != null) { stringBuilder.append("-chunk"); stringBuilder.append(chunkNumber); } if (recordNumber != null) { stringBuilder.append("-record"); stringBuilder.append(recordNumber); } stringBuilder.append(extension); return stringBuilder.toString(); } }
ParseEvtx extends AbstractProcessor { protected String getName(String basename, Object chunkNumber, Object recordNumber, String extension) { StringBuilder stringBuilder = new StringBuilder(basename); if (chunkNumber != null) { stringBuilder.append("-chunk"); stringBuilder.append(chunkNumber); } if (recordNumber != null) { stringBuilder.append("-record"); stringBuilder.append(recordNumber); } stringBuilder.append(extension); return stringBuilder.toString(); } ParseEvtx();  ParseEvtx(FileHeaderFactory fileHeaderFactory, MalformedChunkHandler malformedChunkHandler, RootNodeHandlerFactory rootNodeHandlerFactory, ResultProcessor resultProcessor); }
ParseEvtx extends AbstractProcessor { protected String getName(String basename, Object chunkNumber, Object recordNumber, String extension) { StringBuilder stringBuilder = new StringBuilder(basename); if (chunkNumber != null) { stringBuilder.append("-chunk"); stringBuilder.append(chunkNumber); } if (recordNumber != null) { stringBuilder.append("-record"); stringBuilder.append(recordNumber); } stringBuilder.append(extension); return stringBuilder.toString(); } ParseEvtx();  ParseEvtx(FileHeaderFactory fileHeaderFactory, MalformedChunkHandler malformedChunkHandler, RootNodeHandlerFactory rootNodeHandlerFactory, ResultProcessor resultProcessor); @Override void onTrigger(ProcessContext context, ProcessSession session); @Override Set<Relationship> getRelationships(); }
ParseEvtx extends AbstractProcessor { protected String getName(String basename, Object chunkNumber, Object recordNumber, String extension) { StringBuilder stringBuilder = new StringBuilder(basename); if (chunkNumber != null) { stringBuilder.append("-chunk"); stringBuilder.append(chunkNumber); } if (recordNumber != null) { stringBuilder.append("-record"); stringBuilder.append(recordNumber); } stringBuilder.append(extension); return stringBuilder.toString(); } ParseEvtx();  ParseEvtx(FileHeaderFactory fileHeaderFactory, MalformedChunkHandler malformedChunkHandler, RootNodeHandlerFactory rootNodeHandlerFactory, ResultProcessor resultProcessor); @Override void onTrigger(ProcessContext context, ProcessSession session); @Override Set<Relationship> getRelationships(); static final String RECORD; static final String CHUNK; static final String FILE; static final String EVTX_EXTENSION; static final String XML_EXTENSION; }