All Downloads are FREE. Search and download functionalities are using the official Maven repository.

src.mypackage.MockFileSystemProvider Maven / Gradle / Ivy

Go to download

A library jar that provides APIs for Applications written for the Google Android Platform.

There is a newer version: 15-robolectric-12650502
Show newest version
/*
 * Copyright (C) 2017 The Android Open Source Project
 *
 * 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 mypackage;

import java.io.IOException;
import java.net.URI;
import java.nio.channels.SeekableByteChannel;
import java.nio.file.AccessMode;
import java.nio.file.CopyOption;
import java.nio.file.DirectoryStream;
import java.nio.file.FileStore;
import java.nio.file.FileSystem;
import java.nio.file.LinkOption;
import java.nio.file.OpenOption;
import java.nio.file.Path;
import java.nio.file.attribute.BasicFileAttributes;
import java.nio.file.attribute.FileAttribute;
import java.nio.file.attribute.FileAttributeView;
import java.nio.file.spi.FileSystemProvider;
import java.util.Map;
import java.util.Set;

public class MockFileSystemProvider extends FileSystemProvider {

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

    @Override
    public FileSystem newFileSystem(URI uri, Map env) throws IOException {
        return new MockFileSystem(uri, env);
    }

    @Override
    public FileSystem newFileSystem(Path path, Map env) throws IOException {
        return new MockFileSystem(path, env);
    }

    @Override
    public FileSystem getFileSystem(URI uri) {
        return null;
    }

    @Override
    public Path getPath(URI uri) {
        return null;
    }

    @Override
    public SeekableByteChannel newByteChannel(Path path, Set options,
            FileAttribute[] attrs) throws IOException {
        return null;
    }

    @Override
    public DirectoryStream newDirectoryStream(Path dir,
            DirectoryStream.Filter filter) throws IOException {
        return null;
    }

    @Override
    public void createDirectory(Path dir, FileAttribute[] attrs) throws IOException {

    }

    @Override
    public void delete(Path path) throws IOException {

    }

    @Override
    public void copy(Path source, Path target, CopyOption... options) throws IOException {

    }

    @Override
    public void move(Path source, Path target, CopyOption... options) throws IOException {

    }

    @Override
    public boolean isSameFile(Path path, Path path2) throws IOException {
        return false;
    }

    @Override
    public boolean isHidden(Path path) throws IOException {
        return false;
    }

    @Override
    public FileStore getFileStore(Path path) throws IOException {
        return null;
    }

    @Override
    public void checkAccess(Path path, AccessMode... modes) throws IOException {

    }

    @Override
    public  V getFileAttributeView(Path path, Class type,
            LinkOption... options) {
        return null;
    }

    @Override
    public  A readAttributes(Path path, Class type,
            LinkOption... options) throws IOException {
        return null;
    }

    @Override
    public Map readAttributes(Path path, String attributes,
            LinkOption... options) throws IOException {
        return null;
    }

    @Override
    public void setAttribute(Path path, String attribute, Object value, LinkOption... options)
            throws IOException {

    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy