org.apache.subversion.javahl.util
Class SubstLib

java.lang.Object
  extended by org.apache.subversion.javahl.util.SubstLib

public class SubstLib
extends Object

Encapsulates utility functions for substitution and translation provided by the svn_subst module of libsvn_subr.

Since:
1.9

Field Summary
static byte[] EOL_CR
           
static byte[] EOL_CRLF
           
static byte[] EOL_LF
           
 
Constructor Summary
SubstLib()
           
 
Method Summary
 Map<String,byte[]> buildKeywords(byte[] keywordsValue, long revision, String url, String reposRootUrl, Date date, String author)
           
 InputStream translateInputStream(InputStream source, byte[] eolMarker, boolean repairEol, Map<String,byte[]> keywords, boolean useKeywordsMap, boolean expandKeywords, byte[] keywordsValue, long revision, String url, String reposRootUrl, Date date, String author)
           
 OutputStream translateOutputStream(OutputStream destination, byte[] eolMarker, boolean repairEol, Map<String,byte[]> keywords, boolean useKeywordsMap, boolean expandKeywords, byte[] keywordsValue, long revision, String url, String reposRootUrl, Date date, String author)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EOL_LF

public static final byte[] EOL_LF
See Also:
SVNUtil.EOL_LF

EOL_CR

public static final byte[] EOL_CR
See Also:
SVNUtil.EOL_CR

EOL_CRLF

public static final byte[] EOL_CRLF
See Also:
SVNUtil.EOL_CRLF
Constructor Detail

SubstLib

public SubstLib()
Method Detail

buildKeywords

public Map<String,byte[]> buildKeywords(byte[] keywordsValue,
                                        long revision,
                                        String url,
                                        String reposRootUrl,
                                        Date date,
                                        String author)
                                 throws SubversionException,
                                        ClientException
Throws:
SubversionException
ClientException
See Also:
SVNUtil.buildKeywords

translateInputStream

public InputStream translateInputStream(InputStream source,
                                        byte[] eolMarker,
                                        boolean repairEol,
                                        Map<String,byte[]> keywords,
                                        boolean useKeywordsMap,
                                        boolean expandKeywords,
                                        byte[] keywordsValue,
                                        long revision,
                                        String url,
                                        String reposRootUrl,
                                        Date date,
                                        String author)
                                 throws SubversionException,
                                        ClientException
Throws:
SubversionException
ClientException
See Also:
SVNUtil.translateStream

translateOutputStream

public OutputStream translateOutputStream(OutputStream destination,
                                          byte[] eolMarker,
                                          boolean repairEol,
                                          Map<String,byte[]> keywords,
                                          boolean useKeywordsMap,
                                          boolean expandKeywords,
                                          byte[] keywordsValue,
                                          long revision,
                                          String url,
                                          String reposRootUrl,
                                          Date date,
                                          String author)
                                   throws SubversionException,
                                          ClientException
Throws:
SubversionException
ClientException
See Also:
SVNUtil.translateStream