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

Load Cache from a String (rather than a File) #308

Open
cverges-medallia opened this issue Dec 21, 2023 · 1 comment
Open

Load Cache from a String (rather than a File) #308

cverges-medallia opened this issue Dec 21, 2023 · 1 comment

Comments

@cverges-medallia
Copy link

cverges-medallia commented Dec 21, 2023

When using dnsjava to support unit testing, it's helpful to be able to load a Cache from a file reference that may be in a classpath or an in-memory dynamically created string. The current Cache(String) constructor takes in a filename reference as a String (rather than a File or Path). It would be nice if Cache(String) or even Cache(InputStream) takes in the contents of a zone file and we introduce new Cache(File) or Cache(Path) alternatives for loading an actual zone file from such a reference.

@ibauersachs
Copy link
Member

Hey, thanks for the notice. Would you mind creating a pull request to introduce the suggested Cache(InputStream) constructor?

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

2 participants