com.javanut.pronghorn.pipe.stream.StreamingReadVisitorAdapter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pronghorn-pipes Show documentation
Show all versions of pronghorn-pipes Show documentation
Ring buffer based queuing utility for applications that require high performance and/or a small
footprint. Well suited for embedded and stream based processing.
package com.javanut.pronghorn.pipe.stream;
import java.nio.ByteBuffer;
public class StreamingReadVisitorAdapter implements StreamingReadVisitor {
StringBuilder tempStringBuilder = new StringBuilder(128);
ByteBuffer tempByteBuffer = ByteBuffer.allocate(512);
@Override
public boolean paused() {
return false;
}
@Override
public void visitTemplateOpen(String name, long id) {
}
@Override
public void visitTemplateClose(String name, long id) {
}
@Override
public void visitFragmentOpen(String name, long id, int cursor) {
}
@Override
public void visitFragmentClose(String name, long id) {
}
@Override
public void visitSequenceOpen(String name, long id, int length) {
}
@Override
public void visitSequenceClose(String name, long id) {
}
@Override
public void visitSignedInteger(String name, long id, int value) {
}
@Override
public void visitUnsignedInteger(String name, long id, long value) {
}
@Override
public void visitSignedLong(String name, long id, long value) {
}
@Override
public void visitUnsignedLong(String name, long id, long value) {
}
@Override
public void visitDecimal(String name, long id, int exp, long mant) {
}
@Override
public void visitUTF8(String name, long id, CharSequence value) {
}
@Override
public Appendable targetASCII(String name, long id) {
tempStringBuilder.setLength(0);
return tempStringBuilder;
}
@Override
public Appendable targetUTF8(String name, long id) {
tempStringBuilder.setLength(0);
return tempStringBuilder;
}
@Override
public ByteBuffer targetBytes(String name, long id, int length) {
tempByteBuffer.clear();
if (tempByteBuffer.capacity()
© 2015 - 2025 Weber Informatics LLC | Privacy Policy