< prev index next >

jdk/test/sun/net/idn/NFS4StringPrep.java

Print this page


   1 /*
   2  * Copyright (c) 2005, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.
   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  */
  23 
  24 /*
  25  *******************************************************************************
  26  * Copyright (C) 2003-2004, International Business Machines Corporation and    *
  27  * others. All Rights Reserved.                                                *
  28  *******************************************************************************
  29 */
  30 import java.io.IOException;
  31 import java.io.InputStream;
  32 import java.io.UnsupportedEncodingException;
  33 import java.text.ParseException;
  34 
  35 import sun.text.normalizer.ICUData;
  36 import sun.net.idn.StringPrep;
  37 import sun.text.normalizer.UCharacterIterator;
  38 
  39 /**
  40  * @author ram
  41  *
  42  * This is a dumb implementation of NFS4 profiles. It is a direct port of
  43  * C code, does not use Object Oriented principles. Quick and Dirty implementation
  44  * for testing.
  45  */
  46 public final class NFS4StringPrep {
  47 
  48     private StringPrep nfscss = null;
  49     private StringPrep nfscsi = null;
  50     private StringPrep nfscis = null;
  51     private StringPrep nfsmxp = null;
  52     private StringPrep nfsmxs = null;
  53     //singleton instance
  54     private static final NFS4StringPrep prep = new NFS4StringPrep();
  55 


   1 /*
   2  * Copyright (c) 2005, 2015 Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.
   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  */
  23 
  24 /*
  25  *******************************************************************************
  26  * Copyright (C) 2003-2004, International Business Machines Corporation and    *
  27  * others. All Rights Reserved.                                                *
  28  *******************************************************************************
  29 */
  30 import java.io.IOException;
  31 import java.io.InputStream;
  32 import java.io.UnsupportedEncodingException;
  33 import java.text.ParseException;
  34 

  35 import sun.net.idn.StringPrep;
  36 import sun.text.normalizer.UCharacterIterator;
  37 
  38 /**
  39  * @author ram
  40  *
  41  * This is a dumb implementation of NFS4 profiles. It is a direct port of
  42  * C code, does not use Object Oriented principles. Quick and Dirty implementation
  43  * for testing.
  44  */
  45 public final class NFS4StringPrep {
  46 
  47     private StringPrep nfscss = null;
  48     private StringPrep nfscsi = null;
  49     private StringPrep nfscis = null;
  50     private StringPrep nfsmxp = null;
  51     private StringPrep nfsmxs = null;
  52     //singleton instance
  53     private static final NFS4StringPrep prep = new NFS4StringPrep();
  54 


< prev index next >