Examples of MimeTypeException


Examples of br.jus.tjrn.arq.jsf.utils.exception.MimeTypeException

        MagicMatch magic;
        try {
            magic = Magic.getMagicMatch(dataFile);
            mimeType = magic.getMimeType();
        } catch (MagicParseException e) {
            throw new MimeTypeException(
                    "Ocorreu um erro ao tentar obter o tipo do arquivo", e);
        } catch (MagicMatchNotFoundException e) {
            throw new MimeTypeException(
                    "Ocorreu um erro ao tentar obter o tipo do arquivo", e);
        } catch (MagicException e) {
            throw new MimeTypeException(
                    "Ocorreu um erro ao tentar obter o tipo do arquivo", e);
        }

        return mimeType;
    }
View Full Code Here

Examples of org.apache.tika.mime.MimeTypeException

                  }
               }
            }
         }
      } else {
         throw new MimeTypeException(
               "Not a <" + EXTERNAL_PARSERS_TAG + "/> configuration document: "
               + element.getTagName());
      }
     
      return parsers;
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.