]>
git.argeo.org Git - lgpl/argeo-commons.git/blob - org.argeo.server.jcr/src/org/argeo/jcr/fs/JcrFileSystemProvider.java
1 package org
.argeo
.jcr
.fs
;
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 JcrFileSystemProvider
extends FileSystemProvider
{
25 public String
getScheme() {
30 public FileSystem
newFileSystem(URI uri
, Map
<String
, ?
> env
)
32 // TODO Auto-generated method stub
37 public FileSystem
getFileSystem(URI uri
) {
38 // TODO Auto-generated method stub
43 public Path
getPath(URI uri
) {
44 // TODO Auto-generated method stub
49 public SeekableByteChannel
newByteChannel(Path path
,
50 Set
<?
extends OpenOption
> options
, FileAttribute
<?
>... attrs
)
52 // TODO Auto-generated method stub
57 public DirectoryStream
<Path
> newDirectoryStream(Path dir
,
58 Filter
<?
super Path
> filter
) throws IOException
{
59 // TODO Auto-generated method stub
64 public void createDirectory(Path dir
, FileAttribute
<?
>... attrs
)
66 // TODO Auto-generated method stub
71 public void delete(Path path
) throws IOException
{
72 // TODO Auto-generated method stub
77 public void copy(Path source
, Path target
, CopyOption
... options
)
79 // TODO Auto-generated method stub
84 public void move(Path source
, Path target
, CopyOption
... options
)
86 // TODO Auto-generated method stub
91 public boolean isSameFile(Path path
, Path path2
) throws IOException
{
92 // TODO Auto-generated method stub
97 public boolean isHidden(Path path
) throws IOException
{
98 // TODO Auto-generated method stub
103 public FileStore
getFileStore(Path path
) throws IOException
{
104 // TODO Auto-generated method stub
109 public void checkAccess(Path path
, AccessMode
... modes
) throws IOException
{
110 // TODO Auto-generated method stub
115 public <V
extends FileAttributeView
> V
getFileAttributeView(Path path
,
116 Class
<V
> type
, LinkOption
... options
) {
117 // TODO Auto-generated method stub
122 public <A
extends BasicFileAttributes
> A
readAttributes(Path path
,
123 Class
<A
> type
, LinkOption
... options
) throws IOException
{
124 // TODO Auto-generated method stub
129 public Map
<String
, Object
> readAttributes(Path path
, String attributes
,
130 LinkOption
... options
) throws IOException
{
131 // TODO Auto-generated method stub
136 public void setAttribute(Path path
, String attribute
, Object value
,
137 LinkOption
... options
) throws IOException
{
138 // TODO Auto-generated method stub