|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.vfs2.provider.AbstractFileNameParser
org.apache.commons.vfs2.provider.HostFileNameParser
org.apache.commons.vfs2.provider.URLFileNameParser
public class URLFileNameParser
Implementation for any url based filesystem.
Parses the url into user/password/host/port/path/queryString
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.apache.commons.vfs2.provider.HostFileNameParser |
---|
HostFileNameParser.Authority |
Constructor Summary | |
---|---|
URLFileNameParser(int defaultPort)
|
Method Summary | |
---|---|
boolean |
encodeCharacter(char ch)
Check if a character needs encoding (%nn). |
FileName |
parseUri(VfsComponentContext context,
FileName base,
java.lang.String filename)
parses a String into a filename. |
Methods inherited from class org.apache.commons.vfs2.provider.HostFileNameParser |
---|
extractHostName, extractPort, extractToPath, extractUserInfo, getDefaultPort |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public URLFileNameParser(int defaultPort)
Method Detail |
---|
public boolean encodeCharacter(char ch)
FileNameParser
encodeCharacter
in interface FileNameParser
encodeCharacter
in class HostFileNameParser
ch
- the character
public FileName parseUri(VfsComponentContext context, FileName base, java.lang.String filename) throws FileSystemException
FileNameParser
parseUri
in interface FileNameParser
parseUri
in class HostFileNameParser
context
- The component context.base
- The base FileName.filename
- The target file name.
FileSystemException
- if an error occurs parsing the URI.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |