Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce abstraction from java.io.File #2

Closed
nlmarco opened this issue Mar 17, 2017 · 1 comment
Closed

Introduce abstraction from java.io.File #2

nlmarco opened this issue Mar 17, 2017 · 1 comment
Assignees

Comments

@nlmarco
Copy link
Contributor

nlmarco commented Mar 17, 2017

As pointed out by bcgit in bcgit/bc-java#119 it is indeed not a good idea to directly use java.io.File. We should introduce an abstraction layer making it possible to use other implementations -- e.g. reading/writing from/to a database or simply memory.

@nlmarco
Copy link
Contributor Author

nlmarco commented Mar 17, 2017

There are now the interfaces PgpFile and PgpRandomAccessFile that can easily be implemented to write to sth. else, i.e. not directly into the file system.

The file-system, i.e. java.io.File-based stuff is implemented in the classes IoFile and IoRandomAccessFile.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant