Interface LoadableResource
- All Known Subinterfaces:
LoadableResource.ByBytes
,LoadableResource.ByInputStream
- All Known Implementing Classes:
ClassResourceLoadableResource
,ModuleResourceLoadableResource
,PathLoadableResource
,UrlLoadableResource
public interface LoadableResource
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interface
static interface
-
Method Summary
Modifier and TypeMethodDescription@NonNull InputStream
@NonNull MemorySegment
default @NonNull String
readString
(Charset charset)
-
Method Details
-
readBytes
- Throws:
IOException
- ImplSpec:
- The returned
MemorySegment
must be native.
-
readString
- Throws:
IOException
-
openInputStream
- Throws:
IOException
-