Mercurial > hg4j
comparison src/org/tmatesoft/hg/internal/DataAccess.java @ 425:48f993aa2f41
FIXMEs: exceptions, javadoc
| author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
|---|---|
| date | Wed, 28 Mar 2012 18:39:29 +0200 |
| parents | fdd7d756dea0 |
| children | e1b29756f901 |
comparison
equal
deleted
inserted
replaced
| 424:6437d261048a | 425:48f993aa2f41 |
|---|---|
| 119 public byte readByte() throws IOException { | 119 public byte readByte() throws IOException { |
| 120 throw new UnsupportedOperationException(); | 120 throw new UnsupportedOperationException(); |
| 121 } | 121 } |
| 122 | 122 |
| 123 // XXX decide whether may or may not change position in the DataAccess | 123 // XXX decide whether may or may not change position in the DataAccess |
| 124 // FIXME exception handling is not right, just for the sake of quick test | 124 // TODO REVISIT exception handling may not be right, initially just for the sake of quick test |
| 125 public byte[] byteArray() throws IOException { | 125 public byte[] byteArray() throws IOException { |
| 126 reset(); | 126 reset(); |
| 127 byte[] rv = new byte[length()]; | 127 byte[] rv = new byte[length()]; |
| 128 readBytes(rv, 0, rv.length); | 128 readBytes(rv, 0, rv.length); |
| 129 return rv; | 129 return rv; |
