Package org.archive.uid

Examples of org.archive.uid.UUIDGenerator


      ANVLRecord headerFields = new ANVLRecord();
      headerFields.addLabelValue("x", "y");
      headerFields.addLabelValue("a", "b");
      recordInfo.setExtraHeaders(headerFields);
     
      URI rid = (new UUIDGenerator()).getQualifiedRecordID(TYPE, WARCRecordType.metadata.toString());
      recordInfo.setRecordId(rid);
     
      final String content = "Any old content.";
      for (int i = 0; i < 10; i++) {
        String body = i + ". " + content;
View Full Code Here


                            "test",
                            DEFAULT_MAX_WARC_FILE_SIZE,
                            compress,
                            Arrays.asList(files),
                            null,
                            new UUIDGenerator()));
        String content = getContent();
        writeRecord(writer, SOME_URL, "text/html", content.length(),
            getBaos(content));
        writer.close();
        return writer.getFile();
View Full Code Here

      public int getWriteBufferSize() {
        return 4096;
      }

      public RecordIDGenerator getRecordIDGenerator() {
        return new UUIDGenerator();
      }
    };
  }
View Full Code Here

TOP

Related Classes of org.archive.uid.UUIDGenerator

Copyright © 2018 www.massapicom. 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.