congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
TldMetaData.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
org.jboss.metadata.web.spec.TldMetaData
constructor

Best Java code snippets using org.jboss.metadata.web.spec.TldMetaData.<init> (Showing top 8 results out of 315)

origin: wildfly/wildfly

private TldMetaData parseTLD(VirtualFile tld)
    throws DeploymentUnitProcessingException {
  if (IMPLICIT_TLD.equals(tld.getName())) {
    // Implicit TLDs are different from regular TLDs
    return new TldMetaData();
  }
  InputStream is = null;
  try {
    is = tld.openStream();
    final XMLInputFactory inputFactory = XMLInputFactory.newInstance();
    inputFactory.setXMLResolver(NoopXMLResolver.create());
    XMLStreamReader xmlReader = inputFactory.createXMLStreamReader(is);
    return TldMetaDataParser.parse(xmlReader);
  } catch (XMLStreamException e) {
    throw new DeploymentUnitProcessingException(UndertowLogger.ROOT_LOGGER.failToParseXMLDescriptor(tld.toString(), e.getLocation().getLineNumber(),
        e.getLocation().getColumnNumber()), e);
  } catch (IOException e) {
    throw new DeploymentUnitProcessingException(UndertowLogger.ROOT_LOGGER.failToParseXMLDescriptor(tld.toString()), e);
  } finally {
    try {
      if (is != null) {
        is.close();
      }
    } catch (IOException e) {
      // Ignore
    }
  }
}
origin: wildfly/wildfly

private TldMetaData parseTLD(Resource tld)
    throws DeploymentUnitProcessingException {
  if (IMPLICIT_TLD.equals(tld.getName())) {
    // Implicit TLDs are different from regular TLDs
    return new TldMetaData();
  }
  InputStream is = null;
  try {
    is = tld.openStream();
    final XMLInputFactory inputFactory = XMLInputFactory.newInstance();
    inputFactory.setXMLResolver(NoopXMLResolver.create());
    XMLStreamReader xmlReader = inputFactory.createXMLStreamReader(is);
    return TldMetaDataParser.parse(xmlReader);
  } catch (XMLStreamException e) {
    throw new DeploymentUnitProcessingException(UndertowLogger.ROOT_LOGGER.failToParseXMLDescriptor(tld.getName(), e.getLocation().getLineNumber(),
        e.getLocation().getColumnNumber()), e);
  } catch (IOException e) {
    throw new DeploymentUnitProcessingException(UndertowLogger.ROOT_LOGGER.failToParseXMLDescriptor(tld.getName()), e);
  } finally {
    try {
      if (is != null) {
        is.close();
      }
    } catch (IOException e) {
      // Ignore
    }
  }
}
origin: org.jboss.jbossas/jboss-as-server

  protected TldMetaData parse(VirtualFile file) throws Exception {
   if (file == null)
     throw new IllegalArgumentException("Null file");

   // Implicit TLDs are reserved as the "implicit.tld" name
   if (file.getName().equals("implicit.tld")) {
     return new TldMetaData();
   } else {
     return super.parse(file);
   }
  }
}
origin: org.wildfly/wildfly-undertow

private TldMetaData parseTLD(Resource tld)
    throws DeploymentUnitProcessingException {
  if (IMPLICIT_TLD.equals(tld.getName())) {
    // Implicit TLDs are different from regular TLDs
    return new TldMetaData();
  }
  InputStream is = null;
  try {
    is = tld.openStream();
    final XMLInputFactory inputFactory = XMLInputFactory.newInstance();
    inputFactory.setXMLResolver(NoopXMLResolver.create());
    XMLStreamReader xmlReader = inputFactory.createXMLStreamReader(is);
    return TldMetaDataParser.parse(xmlReader);
  } catch (XMLStreamException e) {
    throw new DeploymentUnitProcessingException(UndertowLogger.ROOT_LOGGER.failToParseXMLDescriptor(tld.getName(), e.getLocation().getLineNumber(),
        e.getLocation().getColumnNumber()), e);
  } catch (IOException e) {
    throw new DeploymentUnitProcessingException(UndertowLogger.ROOT_LOGGER.failToParseXMLDescriptor(tld.getName()), e);
  } finally {
    try {
      if (is != null) {
        is.close();
      }
    } catch (IOException e) {
      // Ignore
    }
  }
}
origin: org.jboss.eap/wildfly-undertow

private TldMetaData parseTLD(VirtualFile tld)
    throws DeploymentUnitProcessingException {
  if (IMPLICIT_TLD.equals(tld.getName())) {
    // Implicit TLDs are different from regular TLDs
    return new TldMetaData();
  }
  InputStream is = null;
  try {
    is = tld.openStream();
    final XMLInputFactory inputFactory = XMLInputFactory.newInstance();
    inputFactory.setXMLResolver(NoopXMLResolver.create());
    XMLStreamReader xmlReader = inputFactory.createXMLStreamReader(is);
    return TldMetaDataParser.parse(xmlReader);
  } catch (XMLStreamException e) {
    throw new DeploymentUnitProcessingException(UndertowLogger.ROOT_LOGGER.failToParseXMLDescriptor(tld.toString(), e.getLocation().getLineNumber(),
        e.getLocation().getColumnNumber()), e);
  } catch (IOException e) {
    throw new DeploymentUnitProcessingException(UndertowLogger.ROOT_LOGGER.failToParseXMLDescriptor(tld.toString()), e);
  } finally {
    try {
      if (is != null) {
        is.close();
      }
    } catch (IOException e) {
      // Ignore
    }
  }
}
origin: org.wildfly/wildfly-undertow

private TldMetaData parseTLD(VirtualFile tld)
    throws DeploymentUnitProcessingException {
  if (IMPLICIT_TLD.equals(tld.getName())) {
    // Implicit TLDs are different from regular TLDs
    return new TldMetaData();
  }
  InputStream is = null;
  try {
    is = tld.openStream();
    final XMLInputFactory inputFactory = XMLInputFactory.newInstance();
    inputFactory.setXMLResolver(NoopXMLResolver.create());
    XMLStreamReader xmlReader = inputFactory.createXMLStreamReader(is);
    return TldMetaDataParser.parse(xmlReader);
  } catch (XMLStreamException e) {
    throw new DeploymentUnitProcessingException(UndertowLogger.ROOT_LOGGER.failToParseXMLDescriptor(tld.toString(), e.getLocation().getLineNumber(),
        e.getLocation().getColumnNumber()), e);
  } catch (IOException e) {
    throw new DeploymentUnitProcessingException(UndertowLogger.ROOT_LOGGER.failToParseXMLDescriptor(tld.toString()), e);
  } finally {
    try {
      if (is != null) {
        is.close();
      }
    } catch (IOException e) {
      // Ignore
    }
  }
}
origin: org.jboss.eap/wildfly-undertow

private TldMetaData parseTLD(Resource tld)
    throws DeploymentUnitProcessingException {
  if (IMPLICIT_TLD.equals(tld.getName())) {
    // Implicit TLDs are different from regular TLDs
    return new TldMetaData();
  }
  InputStream is = null;
  try {
    is = tld.openStream();
    final XMLInputFactory inputFactory = XMLInputFactory.newInstance();
    inputFactory.setXMLResolver(NoopXMLResolver.create());
    XMLStreamReader xmlReader = inputFactory.createXMLStreamReader(is);
    return TldMetaDataParser.parse(xmlReader);
  } catch (XMLStreamException e) {
    throw new DeploymentUnitProcessingException(UndertowLogger.ROOT_LOGGER.failToParseXMLDescriptor(tld.getName(), e.getLocation().getLineNumber(),
        e.getLocation().getColumnNumber()), e);
  } catch (IOException e) {
    throw new DeploymentUnitProcessingException(UndertowLogger.ROOT_LOGGER.failToParseXMLDescriptor(tld.getName()), e);
  } finally {
    try {
      if (is != null) {
        is.close();
      }
    } catch (IOException e) {
      // Ignore
    }
  }
}
origin: org.jboss.metadata/jboss-metadata-web

TldMetaData tld = new TldMetaData();
org.jboss.metadata.web.specTldMetaData<init>

Popular methods of TldMetaData

  • getDescriptionGroup
  • getFunctions
  • getListeners
  • getTagFiles
  • getTags
  • getJspVersion
  • getName
  • getShortName
  • getTlibVersion
  • getUri
  • getValidator
  • getVersion
  • getValidator,
  • getVersion,
  • setJspVersion,
  • setTlibVersion,
  • setShortName,
  • setTags,
  • getTaglibExtensions,
  • setDescriptionGroup,
  • setFunctions

Popular in Java

  • Parsing JSON documents to java classes using gson
  • findViewById (Activity)
  • getSharedPreferences (Context)
  • getContentResolver (Context)
  • FileOutputStream (java.io)
    An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • Properties (java.util)
    A Properties object is a Hashtable where the keys and values must be Strings. Each property can have
  • Stack (java.util)
    Stack is a Last-In/First-Out(LIFO) data structure which represents a stack of objects. It enables u
  • DataSource (javax.sql)
    An interface for the creation of Connection objects which represent a connection to a database. This
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • Sublime Text for Python
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now