< prev index next >

src/java.xml/share/classes/com/sun/org/apache/xml/internal/serializer/utils/URI.java

Print this page


   1 /*
   2  * Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved.
   3  * @LastModified: Oct 2017
   4  */
   5 /*
   6  * Licensed to the Apache Software Foundation (ASF) under one or more
   7  * contributor license agreements.  See the NOTICE file distributed with
   8  * this work for additional information regarding copyright ownership.
   9  * The ASF licenses this file to You under the Apache License, Version 2.0
  10  * (the "License"); you may not use this file except in compliance with
  11  * the License.  You may obtain a copy of the License at
  12  *
  13  *      http://www.apache.org/licenses/LICENSE-2.0
  14  *
  15  * Unless required by applicable law or agreed to in writing, software
  16  * distributed under the License is distributed on an "AS IS" BASIS,
  17  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  18  * See the License for the specific language governing permissions and
  19  * limitations under the License.
  20  */
  21 
  22 package com.sun.org.apache.xml.internal.serializer.utils;
  23 


  45  * is stored as userinfo.
  46  * <p>
  47  * For URIs that do not follow the "generic URI" syntax (e.g. mailto),
  48  * the entire scheme-specific part is treated as the "path" portion
  49  * of the URI.
  50  * <p>
  51  * Note that, unlike the java.net.URL class, this class does not provide
  52  * any built-in network access functionality nor does it provide any
  53  * scheme-specific functionality (for example, it does not know a
  54  * default port for a specific scheme). Rather, it only knows the
  55  * grammar and basic set of operations that can be applied to a URI.
  56  *
  57  * This class is a copy of the one in com.sun.org.apache.xml.internal.utils.
  58  * It exists to cut the serializers dependancy on that package.
  59  *
  60  * A minor change from the original is that this class no longer implements
  61  * Serializable, and the serialVersionUID magic field is dropped, and
  62  * the class is no longer "public".
  63  *
  64  * @xsl.usage internal

  65  */
  66 final class URI
  67 {
  68   /**
  69    * MalformedURIExceptions are thrown in the process of building a URI
  70    * or setting fields on a URI when an operation would result in an
  71    * invalid URI specification.
  72    *
  73    */
  74   public static class MalformedURIException extends IOException
  75   {
  76     private static final long serialVersionUID = 4651455286983598951L;
  77 
  78     /**
  79      * Constructs a <code>MalformedURIException</code> with no specified
  80      * detail message.
  81      */
  82     public MalformedURIException()
  83     {
  84       super();


   1 /*
   2  * Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved.

   3  */
   4 /*
   5  * Licensed to the Apache Software Foundation (ASF) under one or more
   6  * contributor license agreements.  See the NOTICE file distributed with
   7  * this work for additional information regarding copyright ownership.
   8  * The ASF licenses this file to You under the Apache License, Version 2.0
   9  * (the "License"); you may not use this file except in compliance with
  10  * the License.  You may obtain a copy of the License at
  11  *
  12  *      http://www.apache.org/licenses/LICENSE-2.0
  13  *
  14  * Unless required by applicable law or agreed to in writing, software
  15  * distributed under the License is distributed on an "AS IS" BASIS,
  16  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  17  * See the License for the specific language governing permissions and
  18  * limitations under the License.
  19  */
  20 
  21 package com.sun.org.apache.xml.internal.serializer.utils;
  22 


  44  * is stored as userinfo.
  45  * <p>
  46  * For URIs that do not follow the "generic URI" syntax (e.g. mailto),
  47  * the entire scheme-specific part is treated as the "path" portion
  48  * of the URI.
  49  * <p>
  50  * Note that, unlike the java.net.URL class, this class does not provide
  51  * any built-in network access functionality nor does it provide any
  52  * scheme-specific functionality (for example, it does not know a
  53  * default port for a specific scheme). Rather, it only knows the
  54  * grammar and basic set of operations that can be applied to a URI.
  55  *
  56  * This class is a copy of the one in com.sun.org.apache.xml.internal.utils.
  57  * It exists to cut the serializers dependancy on that package.
  58  *
  59  * A minor change from the original is that this class no longer implements
  60  * Serializable, and the serialVersionUID magic field is dropped, and
  61  * the class is no longer "public".
  62  *
  63  * @xsl.usage internal
  64  * @LastModified: Oct 2017
  65  */
  66 final class URI
  67 {
  68   /**
  69    * MalformedURIExceptions are thrown in the process of building a URI
  70    * or setting fields on a URI when an operation would result in an
  71    * invalid URI specification.
  72    *
  73    */
  74   public static class MalformedURIException extends IOException
  75   {
  76     private static final long serialVersionUID = 4651455286983598951L;
  77 
  78     /**
  79      * Constructs a <code>MalformedURIException</code> with no specified
  80      * detail message.
  81      */
  82     public MalformedURIException()
  83     {
  84       super();


< prev index next >