Class SVNSubstitutor


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

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

      All Methods Static Methods Instance Methods Concrete Methods 
      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 Detail

      • ALL

        private static final byte[] ALL
      • EOLS

        private static final byte[] EOLS
      • KEYWORDS

        private static final byte[] KEYWORDS
      • 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 Detail

      • SVNSubstitutor

        public SVNSubstitutor​(byte[] eol,
                              boolean repair,
                              java.util.Map keywords,
                              boolean expand)
    • Method Detail

      • 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)