Create an Input/Output Resource instance from a ByteChannel.
Create an Input/Output Resource instance from a ByteChannel.
The opener param is a by-name argument an is use to open a new stream. In other words it is important to try and pass in a function for opening the stream rather than the already opened stream so that the returned Resource can be used multiple time
the function for opening a new ByteChannel
a ByteChannelResource
Create an InputStreamResource from a resource on the classpath.
Create an InputStreamResource from a resource on the classpath. The current threads context class loader is used to load the resource
An exception is thrown if the resource does not exist
Create an InputStreamResource from a resource on the classpath.
Create an InputStreamResource from a resource on the classpath. The classloader from the provided class is used to resolve the resource.
An exception is thrown if the resource does not exist
Create a file from string then create a Seekable Resource from a File
Create a file from string then create a Seekable Resource from a File
the file to use for constructing a Seekable Resource
a SeekableByteChannelResource
Creates a Seekable Resource from a File
Creates a Seekable Resource from a File
the file to use for constructing a Seekable Resource
a SeekableByteChannelResource
Create an InputStreamResource from an InputStream or subclass
Create an InputStreamResource from an InputStream or subclass
The opener param is a by-name argument an is use to open a new stream. In other words it is important to try and pass in a function for opening the stream rather than the already opened stream so that the returned Resource can be used multiple time
the function for opening a new InputStream
an InputStreamResource
Create an Output Resource instance from an OutputStream.
Create an Output Resource instance from an OutputStream.
The opener param is a by-name argument an is use to open a new stream. In other words it is important to try and pass in a function for opening the stream rather than the already opened stream so that the returned Resource can be used multiple time
the function for opening a new OutputStream
an OutputStreamResource
Create an Input/Output/Seekable Resource instance from a RandomAccess file.
Create an Input/Output/Seekable Resource instance from a RandomAccess file.
The opener param is a by-name argument an is use to open a new stream. In other words it is important to try and pass in a function for opening the stream rather than the already opened stream so that the returned Resource can be used multiple time
the function for opening a new SeekableByteChannel
a SeekableByteChannelResource
Create an Input Resource instance from an ReadableByteChannel.
Create an Input Resource instance from an ReadableByteChannel.
The opener param is a by-name argument an is use to open a new stream. In other words it is important to try and pass in a function for opening the stream rather than the already opened stream so that the returned Resource can be used multiple time
the function for opening a new ReadableByteChannel
an ReadableByteChannelResource
Create an ReadChars Resource instance from an Reader.
Create an ReadChars Resource instance from an Reader.
The opener param is a by-name argument an is use to open a new stream. In other words it is important to try and pass in a function for opening the stream rather than the already opened stream so that the returned Resource can be used multiple time
the function for opening a new Reader
an ReaderResource
Create an Input/Output/Seekable Resource instance from a SeekableByteChannel.
Create an Input/Output/Seekable Resource instance from a SeekableByteChannel.
The opener param is a by-name argument an is use to open a new stream. In other words it is important to try and pass in a function for opening the stream rather than the already opened stream so that the returned Resource can be used multiple time
the function for opening a new SeekableByteChannel
a SeekableByteChannelResource
Converts the string to a URL and creates an Input Resource from the URL
Converts the string to a URL and creates an Input Resource from the URL
the url string to use for constructing a InputStreamResource
an InputStreamResource
Creates an Input Resource from a URL
Creates an Input Resource from a URL
the url to use for constructing a InputStreamResource
an InputStreamResource
Create an Output Resource instance from an WritableByteChannel.
Create an Output Resource instance from an WritableByteChannel.
The opener param is a by-name argument an is use to open a new stream. In other words it is important to try and pass in a function for opening the stream rather than the already opened stream so that the returned Resource can be used multiple time
the function for opening a new WritableByteChannel
an WritableByteChannelResource
Create an WriteChars Resource instance with conversion traits from an Writer.
Create an WriteChars Resource instance with conversion traits from an Writer.
The opener param is a by-name argument an is use to open a new stream. In other words it is important to try and pass in a function for opening the stream rather than the already opened stream so that the returned Resource can be used multiple time
the function for opening a new Writer
an WriterResource
Defines several factory methods for creating instances of Resource.
Note: It is very important to try an pass a method that creates/opens the underlying resource or the actual creation code as the opener. This is important so that the resource can be used more than once. If an opened resource is passed to the factory method the resulting resource can only be used once since it closes the resource when it is closed.
Example:
1.0