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 byte[]ALLprivate static byte[]EOLSprivate static intKEYWORD_MAX_LENGTHprivate static byte[]KEYWORDSprivate byte[]myEOLprivate byte[]myEOLBufferprivate intmyEOLBufferLengthprivate byte[]myInterestingprivate booleanmyIsExpandprivate booleanmyIsRepairprivate byte[]myKeywordBufferprivate intmyKeywordBufferLengthprivate java.util.MapmyKeywordsprivate byte[]myLastEOLprivate int[]myLastEOLLength
-
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 booleanisInteresting(byte p)private byte[]matchKeyword(byte[] src, int offset, int length)private static java.nio.ByteBuffersubstituteEOL(java.nio.ByteBuffer dst, byte[] eol, int eolLength, byte[] lastEOL, int[] lastEOLLength, byte[] nextEOL, int nextEOLLength, boolean repair)private static intsubstituteKeyword(byte[] src, int offset, int length, byte[] keyword, byte[] value)java.nio.ByteBuffertranslateChunk(java.nio.ByteBuffer src, java.nio.ByteBuffer dst)private inttranslateKeyword(byte[] src, int offset, int length, byte[] name)private static voidunread(java.nio.ByteBuffer buffer, int length)private static java.nio.ByteBufferwrite(java.nio.ByteBuffer dst, byte[] bytes, int offset, int length)
-
-
-
Field Detail
-
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:
- Constant Field Values
-
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
-
-
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)
-
-