Class SVNSubstitutor

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

public class SVNSubstitutor extends java.lang.Object
Version:
1.3
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private static final byte[]
     
    private static final byte[]
     
    private static final int
     
    private static final byte[]
     
    private byte[]
     
    private byte[]
     
    private int
     
    private byte[]
     
    private boolean
     
    private boolean
     
    private byte[]
     
    private int
     
    private java.util.Map
     
    private byte[]
     
    private int[]
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    SVNSubstitutor(byte[] eol, boolean repair, java.util.Map keywords, boolean expand)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    private boolean
    isInteresting(byte p)
     
    private byte[]
    matchKeyword(byte[] src, int offset, int length)
     
    private static java.nio.ByteBuffer
    substituteEOL(java.nio.ByteBuffer dst, byte[] eol, int eolLength, byte[] lastEOL, int[] lastEOLLength, byte[] nextEOL, int nextEOLLength, boolean repair)
     
    private static int
    substituteKeyword(byte[] src, int offset, int length, byte[] keyword, byte[] value)
     
    java.nio.ByteBuffer
    translateChunk(java.nio.ByteBuffer src, java.nio.ByteBuffer dst)
     
    private int
    translateKeyword(byte[] src, int offset, int length, byte[] name)
     
    private static void
    unread(java.nio.ByteBuffer buffer, int length)
     
    private static java.nio.ByteBuffer
    write(java.nio.ByteBuffer dst, byte[] bytes, int offset, int length)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 java.util.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, java.util.Map keywords, boolean expand)
  • Method Details

    • translateChunk

      public java.nio.ByteBuffer translateChunk(java.nio.ByteBuffer src, java.nio.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(java.nio.ByteBuffer buffer, int length)
    • substituteKeyword

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

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

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