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 void
close()
InputStream
readFile(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:FileStorageReader
Fetches saved file from store by id- Specified by:
readFile
in interfaceFileStorageReader
- Parameters:
id
- file id- Returns:
- input stream containing the file
- Throws:
IOException
-
close
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
-