![JAR search and dependency download from the Maven repository](/logo.png)
gnu.io.rfc2217.Version Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of nrjavaserial-rfc2217 Show documentation
Show all versions of nrjavaserial-rfc2217 Show documentation
"nrjavaserial-rfc2217" is a Java library which adds RFC2217 support to the "nrjavaserial" library (see http://github.com/NeuronRobotics/nrjavaserial).
Therefore it incorporates code from the "jvser" library (see http://github.com/archiecobbs/jvser).
The newest version!
/*
* Copyright (C) 2010 Archie L. Cobbs. All rights reserved.
*
* $Id$
*/
package gnu.io.rfc2217;
import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;
/**
* Contains library version information.
*/
public final class Version {
/**
* The version of this library.
*/
public static final String JVSER_VERSION;
private static final String PROPERTIES_RESOURCE = "/jvser.properties";
private static final String VERSION_PROPERTY_NAME = "jvser.version";
static {
Properties properties = new Properties();
InputStream input = Version.class.getResourceAsStream(PROPERTIES_RESOURCE);
if (input == null)
throw new RuntimeException("can't find resource " + PROPERTIES_RESOURCE);
try {
properties.load(input);
} catch (IOException e) {
throw new RuntimeException("unexpected exception", e);
} finally {
try {
input.close();
} catch (IOException e) {
// ignore
}
}
JVSER_VERSION = properties.getProperty(VERSION_PROPERTY_NAME, "?");
}
private Version() {
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy