Alien-SVN
view release on metacpan or search on metacpan
src/subversion/subversion/bindings/javahl/src/org/tigris/subversion/javahl/SVNClient.java view on Meta::CPAN
/**
* @copyright
* ====================================================================
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
* ====================================================================
* @endcopyright
*/
package org.tigris.subversion.javahl;
import java.io.OutputStream;
import java.util.Map;
import java.util.Set;
import java.util.HashMap;
import java.util.List;
import java.util.HashSet;
import java.util.Arrays;
import java.util.ArrayList;
import java.util.Date;
import java.text.ParseException;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
/**
* This is the main client class. All Subversion client APIs are
* implemented in this class. This class is not threadsafe; if you
* need threadsafe access, use SVNClientSynchronized.
*/
public class SVNClient implements SVNClientInterface
{
private org.apache.subversion.javahl.SVNClient aSVNClient;
/**
* Standard empty contructor, builds just the native peer.
*/
public SVNClient()
{
aSVNClient = new org.apache.subversion.javahl.SVNClient();
/* This is a bogus value, there really shouldn't be any reason
for a user of this class to care. You've been warned. */
cppAddr = 0xdeadbeef;
}
/**
* release the native peer (should not depend on finalize)
*/
public void dispose()
{
aSVNClient.dispose();
}
/**
* release the native peer (should use dispose instead)
*/
protected void finalize()
{
}
/**
* slot for the adress of the native peer. The JNI code is the only user
* of this member
*/
protected long cppAddr;
/**
* @since 1.0
*/
public Version getVersion()
{
return new Version(
org.apache.subversion.javahl.NativeResources.getVersion());
}
/**
* @since 1.3
*/
public String getAdminDirectoryName()
{
return aSVNClient.getAdminDirectoryName();
}
/**
* @since 1.3
*/
public boolean isAdminDirectory(String name)
{
return aSVNClient.isAdminDirectory(name);
( run in 0.835 second using v1.01-cache-2.11-cpan-3782747c604 )