public class URLFileNameParser extends HostFileNameParser
HostFileNameParser.Authority
Constructor and Description |
---|
URLFileNameParser(int defaultPort) |
Modifier and Type | Method and Description |
---|---|
boolean |
encodeCharacter(char ch)
Check if a character needs encoding (%nn).
|
FileName |
parseUri(VfsComponentContext context,
FileName base,
String filename)
parses a String into a filename.
|
extractHostName, extractPort, extractToPath, extractUserInfo, getDefaultPort
public boolean encodeCharacter(char ch)
FileNameParser
encodeCharacter
in interface FileNameParser
encodeCharacter
in class HostFileNameParser
ch
- the characterpublic FileName parseUri(VfsComponentContext context, FileName base, 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.Copyright © 2002-2016 The Apache Software Foundation. All Rights Reserved.