]>
git.argeo.org Git - lgpl/argeo-commons.git/blob - org.argeo.cms/src/org/argeo/cms/file/provider/CmsFileSystemProvider.java
1 package org
.argeo
.cms
.file
.provider
;
3 import java
.io
.IOException
;
5 import java
.nio
.channels
.SeekableByteChannel
;
6 import java
.nio
.file
.AccessMode
;
7 import java
.nio
.file
.CopyOption
;
8 import java
.nio
.file
.DirectoryStream
;
9 import java
.nio
.file
.DirectoryStream
.Filter
;
10 import java
.nio
.file
.FileStore
;
11 import java
.nio
.file
.FileSystem
;
12 import java
.nio
.file
.LinkOption
;
13 import java
.nio
.file
.OpenOption
;
14 import java
.nio
.file
.Path
;
15 import java
.nio
.file
.attribute
.BasicFileAttributes
;
16 import java
.nio
.file
.attribute
.FileAttribute
;
17 import java
.nio
.file
.attribute
.FileAttributeView
;
18 import java
.nio
.file
.spi
.FileSystemProvider
;
22 public class CmsFileSystemProvider
extends FileSystemProvider
{
25 public String
getScheme() {
30 public FileSystem
newFileSystem(URI uri
, Map
<String
, ?
> env
) throws IOException
{
31 // TODO Auto-generated method stub
36 public FileSystem
getFileSystem(URI uri
) {
37 // TODO Auto-generated method stub
42 public Path
getPath(URI uri
) {
43 // TODO Auto-generated method stub
48 public SeekableByteChannel
newByteChannel(Path path
, Set
<?
extends OpenOption
> options
, FileAttribute
<?
>... attrs
)
50 // TODO Auto-generated method stub
55 public DirectoryStream
<Path
> newDirectoryStream(Path dir
, Filter
<?
super Path
> filter
) throws IOException
{
56 // TODO Auto-generated method stub
61 public void createDirectory(Path dir
, FileAttribute
<?
>... attrs
) throws IOException
{
62 // TODO Auto-generated method stub
67 public void delete(Path path
) throws IOException
{
68 // TODO Auto-generated method stub
73 public void copy(Path source
, Path target
, CopyOption
... options
) throws IOException
{
74 // TODO Auto-generated method stub
79 public void move(Path source
, Path target
, CopyOption
... options
) throws IOException
{
80 // TODO Auto-generated method stub
85 public boolean isSameFile(Path path
, Path path2
) throws IOException
{
86 // TODO Auto-generated method stub
91 public boolean isHidden(Path path
) throws IOException
{
92 // TODO Auto-generated method stub
97 public FileStore
getFileStore(Path path
) throws IOException
{
98 // TODO Auto-generated method stub
103 public void checkAccess(Path path
, AccessMode
... modes
) throws IOException
{
104 // TODO Auto-generated method stub
109 public <V
extends FileAttributeView
> V
getFileAttributeView(Path path
, Class
<V
> type
, LinkOption
... options
) {
110 // TODO Auto-generated method stub
115 public <A
extends BasicFileAttributes
> A
readAttributes(Path path
, Class
<A
> type
, LinkOption
... options
)
117 // TODO Auto-generated method stub
122 public Map
<String
, Object
> readAttributes(Path path
, String attributes
, LinkOption
... options
) throws IOException
{
123 // TODO Auto-generated method stub
128 public void setAttribute(Path path
, String attribute
, Object value
, LinkOption
... options
) throws IOException
{
129 // TODO Auto-generated method stub