Skip to content

ianibo/folio-isbn-util

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

folio-isbn-util

Copyright (C) 2018 The Open Library Foundation

This software is distributed under the terms of the Apache License, Version 2.0. See the file "LICENSE" for more information.

Introduction

ISBN number converter utilities.

Provides implementation of methods for validation and conversion of ISBN-10 and ISBN-13 numbers using Apache Commons Validator library

METHOD DESCRIPTION
isValid10DigitNumber(String isbn10) Checks the code is a valid ISBN-10 code. Returns true if a valid ISBN-10 code, otherwise false
isValid13DigitNumber(String isbn13) Checks the code is a valid ISBN-13 code. Returns true if a valid ISBN-10 code, otherwise false
convertTo13DigitNumber(String isbn10) Converts an ISBN-10 code to an ISBN-13 code. Accepts ISBN-10 with or without formatting characters. Returns a converted ISBN-13 code or null if the ISBN-10 code is not valid
convertTo10DigitNumber(String isbn13) Converts an ISBN-13 code to an ISBN-10 code if possible. Accepts ISBN-13 with or without formatting characters. Returns a converted ISBN-10 code or null if the ISBN-13 code is not valid or does not have an ISBN-10 code.

In order to use the library add the dependency to the pom.xml file:

   <dependency>
     <groupId>org.folio</groupId>
     <artifactId>folio-isbn-util</artifactId>
     <version>x.y.z*</version>
     <type>jar</type>
   </dependency>

*x.y.z - latest release version

Additional information

About

ISBN number converter utilities

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 100.0%