Package ru.curs.celesta.score.io
Class UrlResource
java.lang.Object
ru.curs.celesta.score.io.UrlResource
- All Implemented Interfaces:
Resource
Score resource located in a JAR-file.
- Since:
- 2019-02-23
- Author:
- Pavel Perminov (packpaul@mail.ru)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateRelative(String relativePath, Namespace namespace) Creates a resource relative to this resource.booleanReturns input stream for the resource.Returns namespace of current resource.inthashCode()toString()Methods inherited from interface ru.curs.celesta.score.io.Resource
contains, createRelative, createRelative, delete, getOutputStream, getRelativePath
-
Constructor Details
-
UrlResource
-
UrlResource
-
-
Method Details
-
getInputStream
Description copied from interface:ResourceReturns input stream for the resource.- Specified by:
getInputStreamin interfaceResource- Returns:
- Throws:
IOException- when input stream cannot be provided.
-
createRelative
public UrlResource createRelative(String relativePath, Namespace namespace) throws MalformedURLException Description copied from interface:ResourceCreates a resource relative to this resource.- Specified by:
createRelativein interfaceResource- Parameters:
relativePath- path relative tothisresource.namespace- name space of the created resource.- Returns:
- Throws:
MalformedURLException
-
getNamespace
Description copied from interface:ResourceReturns namespace of current resource.- Specified by:
getNamespacein interfaceResource- Returns:
-
toString
-
hashCode
public int hashCode() -
equals
-