KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > alfresco > filesys > smb > server > ntfs > NTFSStreamsInterface


1 /*
2  * Copyright (C) 2005 Alfresco, Inc.
3  *
4  * Licensed under the Mozilla Public License version 1.1
5  * with a permitted attribution clause. You may obtain a
6  * copy of the License at
7  *
8  * http://www.alfresco.org/legal/license.txt
9  *
10  * Unless required by applicable law or agreed to in writing,
11  * software distributed under the License is distributed on an
12  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
13  * either express or implied. See the License for the specific
14  * language governing permissions and limitations under the
15  * License.
16  */

17 package org.alfresco.filesys.smb.server.ntfs;
18
19 import java.io.IOException JavaDoc;
20
21 import org.alfresco.filesys.server.SrvSession;
22 import org.alfresco.filesys.server.filesys.TreeConnection;
23
24 /**
25  * NTFS Streams Interface
26  * <p>
27  * Optional interface that a DiskInterface driver can implement to provide file streams support.
28  */

29 public interface NTFSStreamsInterface
30 {
31
32     /**
33      * Determine if NTFS streams are enabled
34      *
35      * @param sess SrvSession
36      * @param tree TreeConnection
37      * @return boolean
38      */

39     public boolean hasStreamsEnabled(SrvSession sess, TreeConnection tree);
40
41     /**
42      * Return stream information for the specified stream
43      *
44      * @param sess SrvSession
45      * @param tree TreeConnection
46      * @param streamInfo StreamInfo
47      * @return StreamInfo
48      * @exception IOException I/O error occurred
49      */

50     public StreamInfo getStreamInformation(SrvSession sess, TreeConnection tree, StreamInfo streamInfo)
51             throws IOException JavaDoc;
52
53     /**
54      * Return a list of the streams for the specified file
55      *
56      * @param sess SrvSession
57      * @param tree TreeConnection
58      * @param fileName String
59      * @return StreamInfoList
60      * @exception IOException I/O error occurred
61      */

62     public StreamInfoList getStreamList(SrvSession sess, TreeConnection tree, String JavaDoc fileName) throws IOException JavaDoc;
63
64     /**
65      * Rename a stream
66      *
67      * @param sess SrvSession
68      * @param tree TreeConnection
69      * @param oldName String
70      * @param newName String
71      * @param overWrite boolean
72      * @exception IOException
73      */

74     public void renameStream(SrvSession sess, TreeConnection tree, String JavaDoc oldName, String JavaDoc newName, boolean overWrite)
75             throws IOException JavaDoc;
76 }
77
Popular Tags