Commit 205ea10e authored by Tigran Mkrtchyan's avatar Tigran Mkrtchyan
Browse files

utils: add string to uft8_mixed

parent 98a1a6f4
......@@ -16,11 +16,7 @@
package org.dcache.chimera.nfs.v4;
import org.dcache.chimera.nfs.v4.xdr.nfsace4;
import org.dcache.chimera.nfs.v4.xdr.utf8str_cs;
import org.dcache.chimera.nfs.v4.xdr.nfs4_prot;
import org.dcache.chimera.nfs.v4.xdr.utf8str_cis;
import org.dcache.chimera.nfs.v4.xdr.utf8string;
import org.dcache.chimera.nfs.v4.xdr.*;
public class HimeraNFS4Utils {
......@@ -72,4 +68,13 @@ public class HimeraNFS4Utils {
public static utf8str_cis string2utf8str_cis(String str) {
return new utf8str_cis(new utf8string(str.getBytes()));
* Convert String to a case insensitive string of UTF-8 characters.
* @param str
* @return utf8str_mixed representation of <i>str</i>
public static utf8str_mixed string2utf8str_mixed(String str) {
return new utf8str_mixed(new utf8string(str.getBytes()));
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment