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[]
ALL
private static byte[]
EOLS
private static int
KEYWORD_MAX_LENGTH
private static byte[]
KEYWORDS
private byte[]
myEOL
private byte[]
myEOLBuffer
private int
myEOLBufferLength
private byte[]
myInteresting
private boolean
myIsExpand
private boolean
myIsRepair
private byte[]
myKeywordBuffer
private int
myKeywordBufferLength
private java.util.Map
myKeywords
private byte[]
myLastEOL
private 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 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)
-
-
-
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)
-
-