/** * @param storageData * {@link IStorageData} to get the data for. * @param descriptors * List of descriptors that point to the data. * * @return Returns the newly initialized instance of the {@link ExtendedByteBufferInputStream}. * @throws IOException * if input stream can not be obtained */ public ExtendedByteBufferInputStream getExtendedByteBufferInputStream(IStorageData storageData, List<IStorageDescriptor> descriptors) throws IOException { ExtendedByteBufferInputStream stream = createExtendedByteBufferInputStream(); stream.setStorageData(storageData); stream.setDescriptors(descriptors); stream.prepare(); return stream; }
inputStream.setDescriptors(descriptors); inputStream.prepare();