All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.javanut.pronghorn.util.parse.JSONStreamVisitorNull Maven / Gradle / Ivy

Go to download

Ring buffer based queuing utility for applications that require high performance and/or a small footprint. Well suited for embedded and stream based processing.

There is a newer version: 1.1.27
Show newest version
package com.javanut.pronghorn.util.parse;

import com.javanut.pronghorn.util.ByteConsumer;

public class JSONStreamVisitorNull implements JSONStreamVisitor {

	protected ByteConsumer consumer = new ByteConsumer(){

		@Override
		public void consume(byte[] backing, int pos, int len, int mask) {	
		}

		@Override
		public void consume(byte value) {
		}
		
	};
	
	@Override
	public void nameSeparator() {
	}

	@Override
	public void endObject() {
	}

	@Override
	public void beginObject() {
	}

	@Override
	public void beginArray() {
	}

	@Override
	public void endArray() {
	}

	@Override
	public void valueSeparator() {
	}

	@Override
	public void whiteSpace(byte b) {
	}

	@Override
	public void literalTrue() {
	}

	@Override
	public void literalNull() {
	}

	@Override
	public void literalFalse() {
	}

	@Override
	public void numberValue(long m, byte e) {		
	}

	@Override
	public void stringBegin() {	
	}

	@Override
	public ByteConsumer stringAccumulator() {
		return consumer;
	}

	@Override
	public void stringEnd() {
	}

	@Override
	public void customString(int id) {	
	}

	@Override
	public boolean isReady() {
		return true;
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy