2 * Copyright 2000-2009 JetBrains s.r.o.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
16 package com
.intellij
.cvsSupport2
.cvsoperations
.javacvsSpecificImpls
;
18 import com
.intellij
.cvsSupport2
.CvsUtil
;
19 import org
.netbeans
.lib
.cvsclient
.CvsRoot
;
20 import org
.netbeans
.lib
.cvsclient
.IClientEnvironment
;
21 import org
.netbeans
.lib
.cvsclient
.admin
.Entry
;
22 import org
.netbeans
.lib
.cvsclient
.admin
.IAdminWriter
;
23 import org
.netbeans
.lib
.cvsclient
.file
.*;
25 import java
.io
.IOException
;
26 import java
.io
.InputStream
;
31 public class DeafAdminWriter
implements IAdminWriter
{
32 public void ensureCvsDirectory(DirectoryObject directoryObject
, String repositoryPath
, CvsRoot cvsRoot
, ICvsFileSystem cvsFileSystem
) throws IOException
{
36 public void setEntry(DirectoryObject directoryObject
, Entry entry
, ICvsFileSystem cvsFileSystem
) throws IOException
{
40 public void removeEntryForFile(AbstractFileObject fileObject
, ICvsFileSystem cvsFileSystem
) throws IOException
{
44 public void pruneDirectory(DirectoryObject directoryObject
, ICvsFileSystem cvsFileSystem
) {
48 public void editFile(FileObject fileObject
, Entry entry
, ICvsFileSystem cvsFileSystem
, IFileReadOnlyHandler fileReadOnlyHandler
) throws IOException
{
52 public void uneditFile(FileObject fileObject
, ICvsFileSystem cvsFileSystem
, IFileReadOnlyHandler fileReadOnlyHandler
) throws IOException
{
56 public void setStickyTagForDirectory(DirectoryObject directoryObject
, String tag
, ICvsFileSystem cvsFileSystem
) throws IOException
{
60 public void setEntriesDotStatic(DirectoryObject directoryObject
, boolean set
, ICvsFileSystem cvsFileSystem
) throws IOException
{
64 public void writeTemplateFile(DirectoryObject directoryObject
, int fileLength
, InputStream inputStream
, IReaderFactory readerFactory
, IClientEnvironment clientEnvironment
) throws IOException
{
65 CvsUtil
.skip(inputStream
, fileLength
);
68 public void directoryAdded(DirectoryObject directory
, ICvsFileSystem cvsFileSystem
) throws IOException
{