Mercurial > hg4j
comparison src/org/tmatesoft/hg/internal/StoragePathHelper.java @ 425:48f993aa2f41
FIXMEs: exceptions, javadoc
| author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
|---|---|
| date | Wed, 28 Mar 2012 18:39:29 +0200 |
| parents | 528b6780a8bd |
| children | 5e0313485eef |
comparison
equal
deleted
inserted
replaced
| 424:6437d261048a | 425:48f993aa2f41 |
|---|---|
| 54 assert fsEncoding != null; | 54 assert fsEncoding != null; |
| 55 store = isStore; | 55 store = isStore; |
| 56 fncache = isFncache; | 56 fncache = isFncache; |
| 57 dotencode = isDotencode; | 57 dotencode = isDotencode; |
| 58 suffix2replace = Pattern.compile("\\.([id]|hg)/"); | 58 suffix2replace = Pattern.compile("\\.([id]|hg)/"); |
| 59 csEncoder = fsEncoding.newEncoder(); // FIXME catch exception and rethrow as our's RT | 59 csEncoder = fsEncoding.newEncoder(); |
| 60 byteEncodingBuf = ByteBuffer.allocate(Math.round(csEncoder.maxBytesPerChar()) + 1/*in fact, need ceil, hence +1*/); | 60 byteEncodingBuf = ByteBuffer.allocate(Math.round(csEncoder.maxBytesPerChar()) + 1/*in fact, need ceil, hence +1*/); |
| 61 charEncodingBuf = CharBuffer.allocate(1); | 61 charEncodingBuf = CharBuffer.allocate(1); |
| 62 } | 62 } |
| 63 | 63 |
| 64 /** | 64 /** |
