Module net.anwiba.commons.reference
Class UriUtilities
java.lang.Object
net.anwiba.commons.reference.utilities.UriUtilities
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidassertMatchUrlPathPattern(String pathString) static booleanstatic booleanstatic URIchangeUriExtension(URI base, String descriptionFile, String dataFile) static URIstatic URIstatic booleanstatic longgetContentLength(URI uri) static StringgetContentType(URI uri) static StringgetExtension(URI uri) static Stringstatic Stringstatic URIgetParentUri(URI base) static Stringstatic Stringstatic booleanstatic booleanstatic booleanstatic booleanstatic InputStreamopenInputStream(URI uri) static OutputStreamopenOutputStream(URI uri) static URI
-
Field Details
-
ERROR_MESSAGE
- See Also:
-
converter
-
-
Constructor Details
-
UriUtilities
public UriUtilities()
-
-
Method Details
-
changeUriExtension
-
getNamenFromUriWithoutExtension
-
getName
-
getQuery
-
getPath
-
getExtension
-
getParentUri
-
isChild
-
setPath
-
concat
-
isFileUri
-
canRead
-
canWrite
-
exist
-
getContentType
- Throws:
IOException
-
openInputStream
- Throws:
IOException
-
openOutputStream
- Throws:
IOException
-
getContentLength
-
assertMatchUrlPathPattern
-
isFileUrl
-
isHttpUrl
-
create
-