/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* See LICENSE.txt included in this distribution for the specific
* language governing permissions and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at LICENSE.txt.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
/**
* Access to an RCS repository.
*/
public RCSRepository() {
type = "RCS";
}
}
try {
} catch (IOException ioe) {
return null;
}
}
return fileHasHistory(file);
}
}
throws IOException {
try {
// If revision is null, use current revision
Version version = revision == null ? archive.getRevisionVersion() : archive.getRevisionVersion(revision);
// Get the revision with annotation
// A comment in Archive.getRevisionNodes() says that it is not
// considered public API anymore, but it works.
}
return a;
} catch (ParseException pe) {
throw wrapInIOException(
"Parse exception annotating RCS repository", pe);
} catch (InvalidFileFormatException iffe) {
throw wrapInIOException(
"File format exception annotating RCS repository", iffe);
} catch (PatchFailedException pfe) {
throw wrapInIOException(
"Patch failed exception annotating RCS repository", pfe);
}
}
/**
* Wrap a {@code Throwable} in an {@code IOException} and return it.
*/
// IOException's constructor takes a Throwable, but only in JDK 6
return ioe;
}
throw new IOException("Not supported yet.");
}
return rcsDir.isDirectory();
}
/**
* Get a {@code File} object that points to the file that contains
* RCS history for the specified file.
*
* @param file the file whose corresponding RCS file should be found
* @return the file which contains the RCS history, or {@code null} if it
* cannot be found
*/
}
boolean hasHistoryForDirectories() {
return false;
}
}
}