Class RandomAccessFileStoreReader
- java.lang.Object
-
- jetbrains.buildServer.vcs.patches.store.RandomAccessFileStoreReader
-
- All Implemented Interfaces:
Closeable,AutoCloseable,FileStorageReader
public class RandomAccessFileStoreReader extends Object implements FileStorageReader, Closeable
-
-
Constructor Summary
Constructors Constructor Description RandomAccessFileStoreReader(File file)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()InputStreamreadFile(FileKey id)Fetches saved file from store by id
-
-
-
Constructor Detail
-
RandomAccessFileStoreReader
public RandomAccessFileStoreReader(@NotNull File file) throws IOException- Throws:
IOException
-
-
Method Detail
-
readFile
@NotNull public InputStream readFile(@NotNull FileKey id) throws IOException
Description copied from interface:FileStorageReaderFetches saved file from store by id- Specified by:
readFilein interfaceFileStorageReader- Parameters:
id- file id- Returns:
- input stream containing the file
- Throws:
IOException
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
-