org.netbeans.lib.cvsclient.command
Class PipedFileInformation

java.lang.Object
  extended by org.netbeans.lib.cvsclient.command.FileInfoContainer
      extended by org.netbeans.lib.cvsclient.command.PipedFileInformation

public class PipedFileInformation
extends FileInfoContainer

Contains intercepted infomation from command standard output. Actula data are held in temporary file.


Constructor Summary
PipedFileInformation(java.io.File tempFile)
           
 
Method Summary
protected  void addToTempFile(byte[] bytes)
          Adds the specified line to the temporary file.
 void addToTempFile(byte[] bytes, int len)
          Adds the specified line to the temporary file.
protected  void closeTempFile()
           
 java.io.File getFile()
          Returns the original file.
 java.lang.String getRepositoryFileName()
          Returns the filename in the repository.
 java.lang.String getRepositoryRevision()
          Returns the revision of the incoming file.
 java.io.File getTempFile()
           
protected  void setFile(java.io.File file)
          Sets the original file.
protected  void setRepositoryFileName(java.lang.String repositoryFileName)
          Sets the repository filename.
protected  void setRepositoryRevision(java.lang.String repositoryRevision)
          Sets the revision of the incoming file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PipedFileInformation

public PipedFileInformation(java.io.File tempFile)
Method Detail

getFile

public java.io.File getFile()
Returns the original file. For piped content see getTempFile().

Specified by:
getFile in class FileInfoContainer

setFile

protected void setFile(java.io.File file)
Sets the original file.


getRepositoryRevision

public java.lang.String getRepositoryRevision()
Returns the revision of the incoming file.


setRepositoryRevision

protected void setRepositoryRevision(java.lang.String repositoryRevision)
Sets the revision of the incoming file.


getRepositoryFileName

public java.lang.String getRepositoryFileName()
Returns the filename in the repository.


setRepositoryFileName

protected void setRepositoryFileName(java.lang.String repositoryFileName)
Sets the repository filename.


addToTempFile

protected void addToTempFile(byte[] bytes)
                      throws java.io.IOException
Adds the specified line to the temporary file.

Throws:
java.io.IOException

addToTempFile

public void addToTempFile(byte[] bytes,
                          int len)
                   throws java.io.IOException
Adds the specified line to the temporary file.

Throws:
java.io.IOException

closeTempFile

protected void closeTempFile()
                      throws java.io.IOException
Throws:
java.io.IOException

getTempFile

public java.io.File getTempFile()

 

Built on October 26 2010.  |  Portions Copyright 1997-2005 Sun Microsystems, Inc. All rights reserved.