Package org.sleuthkit.datamodel

Examples of org.sleuthkit.datamodel.TskFileRange


        private String fileName;
        private TskFileRange byteRange;

        public CarvedFileMeta(String fileName, long byteStart, long byteLength) {
            this.fileName = fileName;
            this.byteRange = new TskFileRange(byteStart, byteLength, 0);
        }
View Full Code Here


            // get the size of the carved file
            long size = carvedFileMeta.getByteLength();

            // create the list of TskFileRange objects
            List<TskFileRange> data = new ArrayList<TskFileRange>();
            data.add(new TskFileRange(byteOffset, size, 0));

            // add the carved file
            try {
                carvedFiles.add(db.addCarvedFile(carvedFileMeta.getFileName(), size, id, data));
            } catch (TskCoreException ex) {
View Full Code Here

                    result = line.replaceAll("[\t ]*<byte_run offset='", ""); //NON-NLS
                    result = result.replaceAll("'[\t ]*img_offset='", " "); //NON-NLS
                    result = result.replaceAll("'[\t ]*len='", " "); //NON-NLS
                    result = result.replaceAll("'/>[\t ]*", ""); //NON-NLS
                    fields = result.split(" ")/// offset, image offset, length //NON-NLS
                    ranges.add((new TskFileRange(af.convertToImgOffset(Long.parseLong(fields[1])), Long.parseLong(fields[2]), ranges.size())));

                    // read the next line
                    line = in.readLine();
                }
                carvedFileContainer.add(new CarvedFileContainer(fileName, fileSize, id, ranges));
View Full Code Here

TOP

Related Classes of org.sleuthkit.datamodel.TskFileRange

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.