Package one.nio.util

Examples of one.nio.util.DigestStream


        return prefix + '$' + Long.toHexString(uid) + '$' + simpleName;
    }

    protected final void generateUid() {
        if (this.uid == 0) {
            DigestStream ds = new DigestStream("MD5");
            try {
                ds.writeUTF(getClass().getName());
                writeExternal(ds);
            } catch (IOException e) {
                throw new IllegalStateException(e);
            }
            this.uid = ds.digest();
        }
    }
View Full Code Here

TOP

Related Classes of one.nio.util.DigestStream

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.