Class ServicesEntryResource
java.lang.Object
org.jdrupes.builder.core.ResourceObject
org.jdrupes.builder.java.ServicesEntryResource
- All Implemented Interfaces:
IOResource, Proxyable, Resource
A temporary resource that is used to store the combined
META-INF/services/ entries for a given service. The class can be
used for this purpose only. In particular, it does not support
hashCode or equals.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(IOResource resource) Adds the given resource which must be aMETA-INF/services/*entry from a jar.asOf()The instant at which this resource was created or last modified.Returns the input stream.Returns the output stream.Methods inherited from class ResourceObject
equals, hashCode, toString, typeMethods inherited from interface Resource
asOfLocalized, type
-
Constructor Details
-
ServicesEntryResource
public ServicesEntryResource()Initializes a new services entry resource.
-
-
Method Details
-
asOf
-
add
Adds the given resource which must be aMETA-INF/services/*entry from a jar.- Parameters:
resource- the resource- Throws:
IOException- Signals that an I/O exception has occurred.
-
inputStream
Description copied from interface:IOResourceReturns the input stream.- Specified by:
inputStreamin interfaceIOResource- Returns:
- the input stream
- Throws:
IOException- Signals that an I/O exception has occurred.
-
outputStream
Description copied from interface:IOResourceReturns the output stream.- Specified by:
outputStreamin interfaceIOResource- Returns:
- the output stream
- Throws:
IOException- Signals that an I/O exception has occurred.
-