package net.jarlehansen.proto2javame.protobuf.integration;

import net.jarlehansen.protobuf.javame.input.taghandler.UnknownTagHandler;

/**
 * @author Jarle Hansen hansjar@gmail.com
 *         Date: Jul 2, 2009
 *         Time: 8:32:39 PM
 */
public class ConsoleUnknownTagHandlerImpl implements UnknownTagHandler{
    private String unknownFields = "";

    public void unknownTag(final String unknownFields) {
        this.unknownFields = unknownFields;
        System.out.println(unknownFields);
    }

    public String getUnknownFields() {
        return unknownFields;
    }
}

test class that will save the UnknownTagHandler String created by the protobuf-javame library and print it on the console. Used in the integration tests.