public class OwAlphabetCoder extends Object
Encodes a long value in a numeric base given by the length of given alphabet.
Alfresco Workdesk
Copyright (c) Alfresco Software, Inc.
All rights reserved.
For licensing information read the license.txt file or
go to: http://wiki.alfresco.com
Constructor and Description |
---|
OwAlphabetCoder()
Constructor
The
DEFAULT_ALPHABET will be used |
OwAlphabetCoder(char[] alphabet_p)
Constructor
|
public OwAlphabetCoder()
DEFAULT_ALPHABET
will be usedpublic OwAlphabetCoder(char[] alphabet_p)
alphabet_p
- char array alphabetpublic String encode(long aLong_p) throws OwInvalidOperationException
aLong_p
- a positive long valueOwInvalidOperationException
- if the given long value is negativeCopyright © 2014 Alfresco Business Solutions. All Rights Reserved.