Class FileContentResolver
- java.lang.Object
-
- net.morimekta.providence.config.util.FileContentResolver
-
- All Implemented Interfaces:
ContentResolver
public class FileContentResolver extends java.lang.Object implements ContentResolver
-
-
Constructor Summary
Constructors Constructor Description FileContentResolver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.nio.file.Path
canonical(java.nio.file.Path file)
java.io.InputStream
open(java.nio.file.Path file)
java.nio.file.Path
reference(java.nio.file.Path referenceLocation, java.nio.file.Path from, java.lang.String reference)
java.nio.file.Path
referenceLocationPath(java.nio.file.Path referenceLocation, java.nio.file.Path from, java.lang.String reference)
-
-
-
Method Detail
-
canonical
@Nonnull public java.nio.file.Path canonical(java.nio.file.Path file) throws java.io.IOException
- Specified by:
canonical
in interfaceContentResolver
- Throws:
java.io.IOException
-
reference
@Nonnull public java.nio.file.Path reference(java.nio.file.Path referenceLocation, java.nio.file.Path from, java.lang.String reference)
- Specified by:
reference
in interfaceContentResolver
-
referenceLocationPath
@Nonnull public java.nio.file.Path referenceLocationPath(java.nio.file.Path referenceLocation, java.nio.file.Path from, java.lang.String reference)
- Specified by:
referenceLocationPath
in interfaceContentResolver
-
open
@Nonnull @WillNotClose public java.io.InputStream open(java.nio.file.Path file) throws java.io.IOException
- Specified by:
open
in interfaceContentResolver
- Throws:
java.io.IOException
-
-