Class SVNSubstitutor

java.lang.Object
org.tmatesoft.svn.core.internal.wc.SVNSubstitutor

public class SVNSubstitutor extends Object
Version:
1.3
  • Field Details

    • ALL

      private static final byte[] ALL
    • EOLS

      private static final byte[] EOLS
    • KEYWORDS

      private static final byte[] KEYWORDS
    • KEYWORD_MAX_LENGTH

      private static final int KEYWORD_MAX_LENGTH
      See Also:
    • myIsRepair

      private boolean myIsRepair
    • myIsExpand

      private boolean myIsExpand
    • myKeywords

      private Map myKeywords
    • myEOL

      private byte[] myEOL
    • myLastEOL

      private byte[] myLastEOL
    • myInteresting

      private byte[] myInteresting
    • myEOLBuffer

      private byte[] myEOLBuffer
    • myKeywordBuffer

      private byte[] myKeywordBuffer
    • myLastEOLLength

      private int[] myLastEOLLength
    • myKeywordBufferLength

      private int myKeywordBufferLength
    • myEOLBufferLength

      private int myEOLBufferLength
  • Constructor Details

    • SVNSubstitutor

      public SVNSubstitutor(byte[] eol, boolean repair, Map keywords, boolean expand)
  • Method Details

    • translateChunk

      public ByteBuffer translateChunk(ByteBuffer src, ByteBuffer dst) throws SVNException
      Throws:
      SVNException
    • isInteresting

      private boolean isInteresting(byte p)
    • matchKeyword

      private byte[] matchKeyword(byte[] src, int offset, int length)
    • translateKeyword

      private int translateKeyword(byte[] src, int offset, int length, byte[] name)
    • unread

      private static void unread(ByteBuffer buffer, int length)
    • substituteKeyword

      private static int substituteKeyword(byte[] src, int offset, int length, byte[] keyword, byte[] value)
    • substituteEOL

      private static ByteBuffer substituteEOL(ByteBuffer dst, byte[] eol, int eolLength, byte[] lastEOL, int[] lastEOLLength, byte[] nextEOL, int nextEOLLength, boolean repair) throws SVNException
      Throws:
      SVNException
    • write

      private static ByteBuffer write(ByteBuffer dst, byte[] bytes, int offset, int length)