Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
import org.xml.sax.Attributes;

public class Main {
    public static final byte getByteAttribute(final Attributes pAttributes, final String pAttributeName,
            final byte pDefaultValue) {
        final String value = pAttributes.getValue("", pAttributeName);
        return (value != null) ? Byte.parseByte(value) : pDefaultValue;
    }
}