/** * Creates an independent view of this object (with it's own file pointer and push back queue). Closing the new object will not close this object. * Closing this object will have adverse effect on the view. * * @return the new view */ public RandomAccessFileOrArray createView() { ensureByteSourceIsThreadSafe(); return new RandomAccessFileOrArray(new IndependentRandomAccessSource(byteSource)); }
/** * Creates an independent view of this object (with it's own file pointer and push back queue). Closing the new object will not close this object. * Closing this object will have adverse effect on the view. * * @return the new view */ public RandomAccessFileOrArray createView() { ensureByteSourceIsThreadSafe(); return new RandomAccessFileOrArray(new IndependentRandomAccessSource(byteSource)); }
/** * Creates the view of the byte source of this object. Closing the view won't affect this object. * Closing source will have adverse effect on the view. * * @return the byte source view. */ public IRandomAccessSource createSourceView() { ensureByteSourceIsThreadSafe(); return new IndependentRandomAccessSource(byteSource); }
/** * Creates the view of the byte source of this object. Closing the view won't affect this object. * Closing source will have adverse effect on the view. * * @return the byte source view. */ public IRandomAccessSource createSourceView() { ensureByteSourceIsThreadSafe(); return new IndependentRandomAccessSource(byteSource); }