From 3e15a019e32409ac566f882e0b3b092d19641021 Mon Sep 17 00:00:00 2001 From: carltimmer Date: Thu, 31 Oct 2024 13:09:49 -0400 Subject: [PATCH] comments and debug output --- java/org/jlab/coda/jevio/ByteDataTransformer.java | 4 ++-- java/org/jlab/coda/jevio/test/SequentialReaderTest.java | 3 +++ java/org/jlab/coda/jevio/test/StructureBufferDebugger.java | 2 +- java/org/jlab/coda/jevio/test/Tester.java | 2 +- 4 files changed, 7 insertions(+), 4 deletions(-) diff --git a/java/org/jlab/coda/jevio/ByteDataTransformer.java b/java/org/jlab/coda/jevio/ByteDataTransformer.java index 282ed9815..650f5cced 100644 --- a/java/org/jlab/coda/jevio/ByteDataTransformer.java +++ b/java/org/jlab/coda/jevio/ByteDataTransformer.java @@ -1952,7 +1952,7 @@ public static void swapArray32(byte[] data, int dataOffset, int dataLen) /** * This method swaps the byte order of an entire evio event or bank. * The byte order of the swapped buffer will be opposite to the byte order - * of the the source buffer argument. If the swap is done in place, the + * of the source buffer argument. If the swap is done in place, the * byte order of the source buffer will be switched upon completion and * the destPos arg will be set equal to the srcPos arg. * The positions of the source and destination buffers are not changed. @@ -1964,7 +1964,7 @@ public static void swapArray32(byte[] data, int dataOffset, int dataLen) * Position and limit of neither buffer is changed. * * @param srcBuffer buffer containing event to swap. - * @param destBuffer buffer in which to placed the swapped event. + * @param destBuffer buffer in which to place the swapped event. * If null, or identical to srcBuffer, the data is swapped in place. * @param srcPos position in srcBuffer to start reading event * @param destPos position in destBuffer to start writing swapped event diff --git a/java/org/jlab/coda/jevio/test/SequentialReaderTest.java b/java/org/jlab/coda/jevio/test/SequentialReaderTest.java index ffd5ab2af..fa3e620dc 100644 --- a/java/org/jlab/coda/jevio/test/SequentialReaderTest.java +++ b/java/org/jlab/coda/jevio/test/SequentialReaderTest.java @@ -44,6 +44,7 @@ public static void main(String args[]) { System.out.println("get ev #" + eventCount); event = fileReader.getEvent(eventCount); + // Only works for evio 4 System.out.println("rewind file"); fileReader.rewind(); @@ -56,6 +57,7 @@ public static void main(String args[]) { System.out.println("goto ev #" + eventCount); event = fileReader.gotoEventNumber(eventCount); + // Only works for evio 4 System.out.println("rewind file"); fileReader.rewind(); @@ -68,6 +70,7 @@ public static void main(String args[]) { System.out.println("parse ev #" + eventCount); event = fileReader.parseEvent(eventCount); + // Only works for evio 4 System.out.println("rewind file"); fileReader.rewind(); diff --git a/java/org/jlab/coda/jevio/test/StructureBufferDebugger.java b/java/org/jlab/coda/jevio/test/StructureBufferDebugger.java index cf528b0cc..bb86b785f 100644 --- a/java/org/jlab/coda/jevio/test/StructureBufferDebugger.java +++ b/java/org/jlab/coda/jevio/test/StructureBufferDebugger.java @@ -68,7 +68,7 @@ else if (args[i].equalsIgnoreCase("-f")) { /** Method to print out correct program command line usage. */ private static void usage() { System.out.println("\nUsage:\n\n" + - " java org.jlab.coda.jevio.test.CompositeDebugger\n" + + " java org.jlab.coda.jevio.test.StructureBufferDebugger\n" + " [-t ] tag of structures to look for\n"+ " [-n ] num of structures to look for\n" + " [-e ] number of specific event to look at\n" + diff --git a/java/org/jlab/coda/jevio/test/Tester.java b/java/org/jlab/coda/jevio/test/Tester.java index 5930dc3ed..4d2e52416 100644 --- a/java/org/jlab/coda/jevio/test/Tester.java +++ b/java/org/jlab/coda/jevio/test/Tester.java @@ -840,7 +840,7 @@ public static void main2(String args[]) { // event - bank of banks EvioEvent ev = eb.getEvent(); - // bank of ints + // bank of strings EvioBank ibanks = new EvioBank(3, DataType.CHARSTAR8, 3); ibanks.appendStringData("string 1"); // len + null = 8 eb.addChild(ev, ibanks);