// Path: filesystem-core/src/main/java/onl/area51/filesystem/io/Flat.java
// @MetaInfServices(FileSystemIO.class)
// public class Flat
//         extends LocalFileSystemIO
// {
// 
//     public Flat( Path basePath,
//                  Map<String, ?> env )
//     {
//         super( basePath, env );
//     }
// 
//     @Override
//     protected String getPath( char[] path )
//             throws IOException
//     {
//         return String.valueOf( path );
//     }
// 
// }


import java.io.IOException;
import java.net.URI;
import java.nio.file.Path;
import java.nio.file.ProviderMismatchException;
import java.nio.file.spi.FileSystemProvider;
import java.util.Map;
import java.util.Objects;
import onl.area51.filesystem.io.Flat;
import org.kohsuke.MetaInfServices;
/*
 * Copyright 2016 peter.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package onl.area51.filesystem.local;


/**
 *
 * @author peter
 */
@MetaInfServices(FileSystemProvider.class)
public class LocalFileSystemProvider
        extends AbstractLocalFileSystemProvider<LocalFileSystem, LocalPath>
{

    @Override
    public String getScheme()
    {
        return "local";
    }

    @Override
    protected LocalFileSystem createFileSystem( URI uri, Path p, Map<String, Object> env )
            throws IOException
    {
// Path: filesystem-core/src/main/java/onl/area51/filesystem/io/Flat.java
// @MetaInfServices(FileSystemIO.class)
// public class Flat
//         extends LocalFileSystemIO
// {
// 
//     public Flat( Path basePath,
//                  Map<String, ?> env )
//     {
//         super( basePath, env );
//     }
// 
//     @Override
//     protected String getPath( char[] path )
//             throws IOException
//     {
//         return String.valueOf( path );
//     }
// 
// }


// Path: filesystem-core/src/main/java/onl/area51/filesystem/local/LocalFileSystemProvider.java
import java.io.IOException;
import java.net.URI;
import java.nio.file.Path;
import java.nio.file.ProviderMismatchException;
import java.nio.file.spi.FileSystemProvider;
import java.util.Map;
import java.util.Objects;
import onl.area51.filesystem.io.Flat;
import org.kohsuke.MetaInfServices;

/*
 * Copyright 2016 peter.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package onl.area51.filesystem.local;


/**
 *
 * @author peter
 */
@MetaInfServices(FileSystemProvider.class)
public class LocalFileSystemProvider
        extends AbstractLocalFileSystemProvider<LocalFileSystem, LocalPath>
{

    @Override
    public String getScheme()
    {
        return "local";
    }

    @Override
    protected LocalFileSystem createFileSystem( URI uri, Path p, Map<String, Object> env )
            throws IOException
    {
        return new LocalFileSystem( uri, this, p, env, Flat::new );