⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 svnclient.java

📁 subversion-1.4.3-1.tar.gz 配置svn的源码
💻 JAVA
📖 第 1 页 / 共 3 页
字号:
     * @throws ClientException     */    public void propertySet(String path, String name, byte[] value,                                   boolean recurse) throws ClientException    {        propertySet(path, name, value, recurse, false);    }    /**     * Sets one property of an item with a byte array value     *     * @param path    path of the item     * @param name    name of the property     * @param value   new value of the property     * @param recurse set property also on the subdirectories     * @param force   do not check if the value is valid     * @throws ClientException     * @since 1.2     */    public native void propertySet(String path, String name, byte[] value,                                   boolean recurse, boolean force)            throws ClientException;    /**     * Remove one property of an item.     * @param path      path of the item     * @param name      name of the property     * @param recurse   remove the property also on subdirectories     * @throws ClientException     */    public native void propertyRemove(String path, String name,                                      boolean recurse) throws ClientException;    /**     * Create and sets one property of an item with a String value     * @param path      path of the item     * @param name      name of the property     * @param value     new value of the property     * @param recurse   set property also on the subdirectories     * @throws ClientException     */    public void propertyCreate(String path, String name, String value,                                      boolean recurse) throws ClientException    {        propertyCreate(path, name, value, recurse, false);    }    /**     * Create and sets one property of an item with a String value     *     * @param path    path of the item     * @param name    name of the property     * @param value   new value of the property     * @param recurse set property also on the subdirectories     * @param force   do not check if the value is valid     * @throws ClientException     * @since 1.2     */    public native void propertyCreate(String path, String name, String value,                                 boolean recurse, boolean force)            throws ClientException;    /**     * Create and sets one property of an item with a byte array value     * @param path      path of the item     * @param name      name of the property     * @param value     new value of the property     * @param recurse   set property also on the subdirectories     * @throws ClientException     */    public void propertyCreate(String path, String name, byte[] value,                                      boolean recurse) throws ClientException    {        propertyCreate(path, name, value, recurse, false);    }    /**     * Create and sets one property of an item with a byte array value     *     * @param path    path of the item     * @param name    name of the property     * @param value   new value of the property     * @param recurse set property also on the subdirectories     * @param force   do not check if the value is valid     * @throws ClientException     * @since 1.2     */    public native void propertyCreate(String path, String name, byte[] value,                                      boolean recurse, boolean force)            throws ClientException;    /**     * Retrieve one revsision property of one item     * @param path      path of the item     * @param name      name of the property     * @param rev       revision to retrieve     * @return the Property     * @throws ClientException     */    public native PropertyData revProperty(String path, String name,                                           Revision rev) throws ClientException;    /**     * Retrieve all revsision properties of one item     * @param path      path of the item     * @param rev       revision to retrieve     * @return the Properties     * @throws ClientException     * @since 1.2     */    public native PropertyData[] revProperties(String path, Revision rev)            throws ClientException;    /**     * set one revsision property of one item     * @param path      path of the item     * @param name      name of the property     * @param rev       revision to retrieve     * @param value     value of the property     * @param force     * @throws ClientException     * @since 1.2     */    public native void setRevProperty(String path, String name, Revision rev,                                      String value, boolean force)            throws ClientException;    /**     * Retrieve one property of one iten     * @param path      path of the item     * @param name      name of property     * @return the Property     * @throws ClientException     */    public PropertyData propertyGet(String path, String name)            throws ClientException    {        return propertyGet(path, name, null);    }    /**     * Retrieve one property of one iten     *     * @param path     path of the item     * @param name     name of property     * @param revision revision of the item     * @return the Property     * @throws ClientException     * @since 1.2     */    public PropertyData propertyGet(String path, String name,                                           Revision revision)            throws ClientException    {        return propertyGet(path, name, revision, revision);    }    /**     * Retrieve one property of one iten     *     * @param path     path of the item     * @param name     name of property     * @param revision revision of the item     * @param pegRevision the revision to interpret path     * @return the Property     * @throws ClientException     * @since 1.2     */    public native PropertyData propertyGet(String path, String name,                                           Revision revision,                                           Revision pegRevision)            throws ClientException;    /**     *  Retrieve the content of a file     * @param path      the path of the file     * @param revision  the revision to retrieve     * @return  the content as byte array     * @throws ClientException     */    public byte[] fileContent(String path, Revision revision)            throws ClientException    {        return fileContent(path, revision, revision);    }    /**     * Retrieve the content of a file     *     * @param path        the path of the file     * @param revision    the revision to retrieve     * @param pegRevision the revision to interpret path     * @return the content as byte array     * @throws ClientException     * @since 1.2     */    public native byte[] fileContent(String path, Revision revision,                                     Revision pegRevision)            throws ClientException;    /**     * Write the file's content to the specified output stream.  If     * you need an InputStream, use a     * PipedInputStream/PipedOutputStream combination.     *     * @param path        the path of the file     * @param revision    the revision to retrieve     * @param pegRevision the revision at which to interpret the path     * @param stream      the stream to write the file's content to     * @throws ClientException     * @see <a href="http://java.sun.com/j2se/1.4.2/docs/api/java/io/PipedOutputStream.html">PipedOutputStream</a>     * @see <a href="http://java.sun.com/j2se/1.4.2/docs/api/java/io/PipedInputStream.html">PipedInputStream</a>     */    public native void streamFileContent(String path, Revision revision,                             Revision pegRevision, int bufferSize,                             OutputStream stream)             throws ClientException;        /**     * Rewrite the url's in the working copy     * @param from      old url     * @param to        new url     * @param path      working copy path     * @param recurse   recurse into subdirectories     * @throws ClientException     */    public native void relocate(String from, String to, String path,                                boolean recurse) throws ClientException;    /**     * Return for each line of the file, the author and the revision of the     * last together with the content.     * @deprecated     * @param path          the path     * @param revisionStart the first revision to show     * @param revisionEnd   the last revision to show     * @return  the content together with author and revision of last change     * @throws ClientException     */    public native byte[] blame(String path, Revision revisionStart,                               Revision revisionEnd) throws ClientException;    /**     * Retrieve the content together with the author, the revision and the date     * of the last change of each line     * @param path          the path     * @param revisionStart the first revision to show     * @param revisionEnd   the last revision to show     * @param callback      callback to receive the file content and the other     *                      information     * @throws ClientException     */    public void blame(String path, Revision revisionStart,                             Revision revisionEnd, BlameCallback callback)            throws ClientException    {        blame(path, revisionEnd, revisionStart, revisionEnd, callback);    }    /**     * Retrieve the content together with the author, the revision and the date     * of the last change of each line     * @param path          the path     * @param pegRevision   the revision to interpret the path     * @param revisionStart the first revision to show     * @param revisionEnd   the last revision to show     * @param callback      callback to receive the file content and the other     *                      information     * @throws ClientException     * @since 1.2     */    public native void blame(String path, Revision pegRevision,                             Revision revisionStart, Revision revisionEnd,                             BlameCallback callback) throws ClientException;    /**     * Set directory for the configuration information     * @param configDir     path of the directory     * @throws ClientException     */    public native void setConfigDirectory(String configDir)            throws ClientException;    /**     * Get the configuration directory     * @return  the directory     * @throws ClientException     */    public native String getConfigDirectory() throws ClientException;    /**     * cancel the active operation     * @throws ClientException     */    public native void cancelOperation() throws ClientException;    /**     * Retrieves the working copy information for an item     * @param path  path of the item     * @return      the information object     * @throws ClientException     */    public native Info info(String path) throws ClientException;    /**     *  Produce a compact "version number" for a working copy     * @param path          path of the working copy     * @param trailUrl      to detect switches of the whole working copy     * @param lastChanged   last changed rather than current revisions     * @return      the compact "version number"     * @throws ClientException     * @since 1.2     */    public native String getVersionInfo(String path, String trailUrl,                                        boolean lastChanged)            throws ClientException;    /**     * Enable logging in the JNI-code     * @param logLevel      the level of information to log (See     *                      SVNClientLogLevel)     * @param logFilePath   path of the log file     */    public static native void enableLogging(int logLevel, String logFilePath);    /**     * class for the constants of the logging levels.     * The constants are defined in SVNClientLogLevel because of building     * reasons     */    public static final class LogLevel implements SVNClientLogLevel    {    }    /**     * Returns version information of subversion and the javahl binding     * @return version information     */    public static native String version();    /**     * Returns the major version of the javahl binding. Same version of the     * javahl support the same interfaces     * @return major version number     */    public static native int versionMajor();    /**     * Returns the minor version of the javahl binding. Same version of the     * javahl support the same interfaces     * @return minor version number     */    public static native int versionMinor();    /**     * Returns the micro (patch) version of the javahl binding. Same version of     * the javahl support the same interfaces     * @return micro version number     */    public static native int versionMicro();    /**     * Commits changes to the repository.     *     * @param path     files to commit.     * @param message  log message.     * @param recurse  whether the operation should be done recursively.     * @param noUnlock do remove any locks     * @return Returns a long representing the revision. It returns a     *         -1 if the revision number is invalid.     * @throws ClientException     * @since 1.2     */    public native long commit(String[] path, String message, boolean recurse,                              boolean noUnlock) throws ClientException;    /**     * Lock a working copy item     *     * @param path  path of the item     * @param comment     * @param force break an existing lock     * @throws ClientException     * @since 1.2     */    public native void lock(String[] path, String comment, boolean force)            throws ClientException;    /**     * Unlock a working copy item     *     * @param path  path of the item     * @param force break an existing lock     * @throws ClientException     * @since 1.2     */    public native void unlock(String[] path, boolean force)            throws ClientException;    /**     * Retrieve information about repository or working copy items.     *     * @param pathOrUrl   the path or the url of the item     * @param revision    the revision of the item to return     * @param pegRevision the revision to interpret pathOrUrl     * @param recurse     flag if to recurse, if the item is a directory     * @return the information objects     * @since 1.2     */    public native Info2[] info2(String pathOrUrl, Revision revision,                                Revision pegRevision, boolean recurse)            throws ClientException;    /**     * Internal method to initialize the native layer. Only to be called by     * NativeResources.loadNativeLibrary     */    static native void initNative();}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -