Coder Social home page Coder Social logo

nv-oui's Introduction

Utility for OUI

Overview

This library contains a utility class for OUI. OUI is short for Organizationally Unique Identifier. It is a 24-bit number assigned to organizations by IEEE Standards Association, Registration Authority.

License

Apache License, Version 2.0

Maven

<dependency>
    <groupId>com.neovisionaries</groupId>
    <artifactId>nv-oui</artifactId>
    <version>1.1</version>
</dependency>

Gradle

dependencies {
    compile 'com.neovisionaries:nv-oui:1.1'
}

OSGi

Bundle-SymbolicName: com.neovisionaries.oui
Export-Package: com.neovisionaries.oui;version="1.1.0"

Source Code

https://github.com/TakahikoKawasaki/nv-oui

JavaDoc

http://TakahikoKawasaki.github.io/nv-oui/

Usage

// Load an 'oui.csv' file.
Oui oui = new Oui(new OuiCsvParser().parse(new URL("file:data/oui.csv")));

// (1) Look up by a 6-hexadecimal OUI. ("Apple, Inc." is returned.)
String name = oui.getName("00CDFE");

// (2) Case-insensitive. ("Google, Inc.")
oui.getName("3c5ab4");

// (3) Semi-colons can be interleaved. ("Microsoft Corporation")
oui.getName("48:50:73");

// (4) A 48-bit device address is okay. ("Facebook")
oui.getName("48:57:dd:01:02:03");

// (5) Hyphens are okay, too. ("Amazon Technologies Inc.")
oui.getName("F0-D2-F1");

// (6) Only the first 6 hexadecimal letters have a meeting. ("Oracle Corporation")
oui.getName("0010e0#XYZ")

// (7) This is parsed successfully, too. ("Intel Corporation")
oui.getName("00:03-47@XYZ");

// (8) Look up by a byte array. ("IBM Corp")
byte[] data = { 0x00, 0x04, (byte)0xAC };
oui.getName(data);

Links

Author

Authlete, Inc. & Neo Visionaries Inc.
Takahiko Kawasaki <[email protected]>

nv-oui's People

Contributors

takahikokawasaki avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.