Package org.tmatesoft.hg.internal

Examples of org.tmatesoft.hg.internal.ByteVector.clear()


                fileRev = Nodeid.fromAscii(nid, 0, 40);
              } else {
                data.skip(40);
              }
              if (csetIndex2Flags != null || delegate != null) {
                byteVector.clear();
                while (!data.isEmpty() && (b = data.readByte()) != '\n') {
                  byteVector.add(b);
                }
                if (byteVector.size() == 0) {
                  flags = Flags.RegularFile;
View Full Code Here


            }
            // else skip to the end of line
            while (!data.isEmpty() && (b = data.readByte()) != '\n')
              ;

            byteVector.clear();
          }
        }
      } catch (IOException ex) {
        throw new HgInvalidControlFileException("Failed reading manifest", ex, null);
      }
View Full Code Here

  public void testByteVector() {
    ByteVector v = new ByteVector(4, 2);
    v.add(7);
    v.add(9);
    errorCollector.assertEquals(2, v.size());
    v.clear();
    errorCollector.assertEquals(0, v.size());
    v.add(10);
    v.add(9);
    v.add(8);
    v.add(7);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.