corrected javadoc


On Wed, May 1, 2013 at 1:17 PM, Brian Carrier <notifications@github.com>wrote:

> In bindings/java/src/org/sleuthkit/datamodel/AbstractFile.java:
>
> > @@ -434,7 +437,36 @@ public String getParentPath() {
> >  	 * @throws TskCoreException exception thrown if critical error occurred
> >  	 * within tsk core
> >  	 */
> > -	public abstract List<TskFileRange> getRanges() throws TskCoreException;
> > +	public List<TskFileRange> getRanges() throws TskCoreException {
> > +		if(ranges == null) {
> > +            ranges = getSleuthkitCase().getFileRanges(this.getId());
> > +        }
> > +        return ranges;
> > +	}
> > +	
> > +	/**
> > +	 * Convert an internal offset to an image offset
> > +	 * @param fileOffset the byte offset in this layout file to map
> > +	 * @return the corresponding byte offset in the image where the file offset is located
> > +	 */
> > +	public long convertToImgOffset(long fileOffset) throws TskCoreException {
>
> This also seems to return -1 as an error case. We should document when
> this occurs.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/sleuthkit/sleuthkit/pull/180/files#r4040317>
> .
>