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
.javacvsImpl
.io
;
18 import org
.netbeans
.lib
.cvsclient
.file
.*;
20 import java
.util
.Date
;
21 import java
.io
.InputStream
;
22 import java
.io
.IOException
;
23 import java
.nio
.charset
.Charset
;
25 import com
.intellij
.cvsSupport2
.CvsUtil
;
30 public class DeafLocalFileWriter
implements ILocalFileWriter
{
31 public final static ILocalFileWriter INSTANCE
= new DeafLocalFileWriter();
32 private DeafLocalFileWriter() {
35 public void setNextFileDate(Date modifiedDate
) {
38 public void writeBinaryFile(FileObject fileObject
,
40 InputStream inputStream
,
42 IFileReadOnlyHandler fileReadOnlyHandler
,
43 ICvsFileSystem cvsFileSystem
) throws IOException
{
44 CvsUtil
.skip(inputStream
, length
);
47 public void renameLocalFile(FileObject fileObject
, ICvsFileSystem cvsFileSystem
, String newFileName
)
52 public void removeLocalFile(FileObject fileObject
,
53 ICvsFileSystem cvsFileSystem
,
54 IFileReadOnlyHandler fileReadOnlyHandler
) throws IOException
{
57 public void writeTextFile(FileObject fileObject
,
59 InputStream inputStream
,
61 IReaderFactory readerFactory
,
62 IFileReadOnlyHandler fileReadOnlyHandler
,
63 IFileSystem fileSystem
, final Charset charSet
) throws IOException
{
64 CvsUtil
.skip(inputStream
, length
);
67 public void setNextFileMode(String nextFileMode
) {