Example usage for org.apache.commons.vfs2.provider.local GenericFileNameParser subclass-usage

List of usage examples for org.apache.commons.vfs2.provider.local GenericFileNameParser subclass-usage

Introduction

In this page you can find the example usage for org.apache.commons.vfs2.provider.local GenericFileNameParser subclass-usage.

Usage

From source file org.wso2.carbon.inbound.endpoint.protocol.file.MockFileNameParser.java

public class MockFileNameParser extends GenericFileNameParser {

    public FileName parseUri(VfsComponentContext context, FileName base, String filename)
            throws FileSystemException {
        StringBuilder name = new StringBuilder();
        String scheme = UriParser.extractScheme(filename.split("\\?")[0], name);