File Storage system

Enables the storage and retrieval of files on a file-system by arbitrary ID

License

License

GroupId

GroupId

com.github.davidcarboni
ArtifactId

ArtifactId

file-store
Last Version

Last Version

0.0.5
Release Date

Release Date

Type

Type

jar
Description

Description

File Storage system
Enables the storage and retrieval of files on a file-system by arbitrary ID
Project URL

Project URL

https://github.com/davidcarboni/file-store
Source Code Management

Source Code Management

https://github.com/davidcarboni/file-store

Download file-store

How to add to project

<!-- https://jarcasting.com/artifacts/com.github.davidcarboni/file-store/ -->
<dependency>
    <groupId>com.github.davidcarboni</groupId>
    <artifactId>file-store</artifactId>
    <version>0.0.5</version>
</dependency>
// https://jarcasting.com/artifacts/com.github.davidcarboni/file-store/
implementation 'com.github.davidcarboni:file-store:0.0.5'
// https://jarcasting.com/artifacts/com.github.davidcarboni/file-store/
implementation ("com.github.davidcarboni:file-store:0.0.5")
'com.github.davidcarboni:file-store:jar:0.0.5'
<dependency org="com.github.davidcarboni" name="file-store" rev="0.0.5">
  <artifact name="file-store" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.github.davidcarboni', module='file-store', version='0.0.5')
)
libraryDependencies += "com.github.davidcarboni" % "file-store" % "0.0.5"
[com.github.davidcarboni/file-store "0.0.5"]

Dependencies

compile (2)

Group / Artifact Type Version
commons-lang : commons-lang jar 2.6
commons-io : commons-io jar 2.4

test (1)

Group / Artifact Type Version
junit : junit jar 4.11

Project Modules

There are no modules declared in this project.

Build Status File Store

What is this?

It's a component that allows you to store files by arbitrary ID.

How do I use it?

Instantiate the FileStore class with a base path and manipulate content referenced by ID:

fileStore = new FileStore(path);
String id = "myarbitraryid";

// Create
FileInputStream content1 = new FileInputStream(file1);
fileStore.create(id, content1);

// Read
InputStream stored = fileStore.read(id);

// Update
FileInputStream content2 = new FileInputStream(file2);
fileStore.update(id, content2);

// Delete
fileStore.delete(id);

David Carboni

https://github.com/davidcarboni/

Versions

Version
0.0.5