Examples of OperationNotSupportedException


Examples of geodress.exceptions.OperationNotSupportedException

   */
  @Override
  public void setData(int field, String value)
      throws OperationNotSupportedException {
    if (field < 0 || 5 < field) {
      throw new OperationNotSupportedException("writing for field "
          + field + " is not supported yet");
    }
    if (!isExifToolAvailable()) {
      logger.log(Level.CONFIG, "ExifTool is not available, "
          + "but setData(int, String) is used.");
    }

    String fieldName = "";
    switch (field) {
    case InfoConstants.GPS_LATITUDE:
      throw new OperationNotSupportedException(
          "writing latitude is not supported yet");
    case InfoConstants.GPS_LONGITUDE:
      throw new OperationNotSupportedException(
          "writing longitude is not supported yet");
    case InfoConstants.DATE_TIME:
      throw new OperationNotSupportedException(
          "writing date/time is not supported yet");
    case InfoConstants.USER_COMMENT:
      logger.log(Level.FINER, "new user comment for writing: " + value);
      fieldName = "EXIF:UserComment";
      break;
    case InfoConstants.IMAGE_DESCRIPTION:
      logger.log(Level.FINER, "new image description for writing: "
          + value);
      fieldName = "EXIF:ImageDescription";
      break;
    default:
      throw new OperationNotSupportedException("writing for field "
          + field + " is not supported yet");
    }
    saveMap.put(fieldName, value);
  }
View Full Code Here

Examples of javax.naming.OperationNotSupportedException

   * @param newName
   *    the name of the new binding; may not be empty
   * @throws  NamingException if a naming exception is encountered
   */
  public void rename(String oldName, String newName) throws NamingException {
    throw new OperationNotSupportedException("Rename not supported in scn:comp in " + this.getClass().getName());
  }
View Full Code Here

Examples of javax.naming.OperationNotSupportedException

   *    context, or does not name a context of the appropriate type
   * @throws  ContextNotEmptyException if the named context is not empty
   * @throws  NamingException if a naming exception is encountered
   */
  public void destroySubcontext(String name) throws NamingException {
    throw new OperationNotSupportedException("destroySubcontext not supported in scn:comp in " + this.getClass().getName());
  }
View Full Code Here

Examples of javax.naming.OperationNotSupportedException

   * @throws  NamingException if a naming exception is encountered
   *
   * @see #composeName(String, String)
   */
  public Name composeName(Name name, Name prefix) throws NamingException {
    throw new OperationNotSupportedException("scnURLContext: composeName not supported");
  }
View Full Code Here

Examples of javax.naming.OperationNotSupportedException

   *    the name of this context relative to one of its ancestors
   * @return  the composition of prefix and name
   * @throws  NamingException if a naming exception is encountered
   */
  public String composeName(String name, String prefix) throws NamingException {
    throw new OperationNotSupportedException("composeName not supported in scn:comp in " + this.getClass().getName());
  }
View Full Code Here

Examples of javax.naming.OperationNotSupportedException

   * @throws  OperationNotSupportedException if the naming system does
   *    not have the notion of a full name
   * @throws  NamingException if a naming exception is encountered
   */
  public String getNameInNamespace() throws NamingException {
    throw new OperationNotSupportedException("getNameInNamespace not implemented in scn:comp in " + this.getClass().getName());
  }
View Full Code Here

Examples of javax.naming.OperationNotSupportedException

            }
        }
    }

    public void rename(Name oldName, Name newName) throws NamingException {
        throw new OperationNotSupportedException(
                "rename not supported in Winstone java:/ context");
    }
View Full Code Here

Examples of javax.naming.OperationNotSupportedException

                name2));
        return name == null ? null : name.toString();
    }

    public Name composeName(Name name1, Name name2) throws NamingException {
        throw new OperationNotSupportedException(
                "composeName not supported in Winstone java:/ namespace");
    }
View Full Code Here

Examples of javax.naming.OperationNotSupportedException

     * @param name the name of the context to be destroyed; may not be empty
     * @throws NamingException if a naming exception is encountered
     */
    public void destroySubcontext(final String name) throws NamingException {
        logger.error("CompNamingContext try to destroySubcontext {0}", name);
        throw new OperationNotSupportedException("CompNamingContext: destroySubcontext");
    }
View Full Code Here

Examples of javax.naming.OperationNotSupportedException

     * @throws NamingException if a naming exception is encountered
     */
    public Name composeName(final Name name, final Name prefix) throws NamingException {
        logger.error("CompNamingContext composeName not implemented yet!");

        throw new OperationNotSupportedException("CompNamingContext composeName");
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.