Package org.eclipse.jdt.internal.core.util

Examples of org.eclipse.jdt.internal.core.util.ClassFileReader


   * @see IClassFileReader
   * @since 3.2
   */
  public static IClassFileReader createDefaultClassFileReader(InputStream stream, int decodingFlag) {
    try {
      return new ClassFileReader(Util.getInputStreamAsByteArray(stream, -1), decodingFlag);
    } catch(ClassFormatException e) {
      return null;
    } catch(IOException e) {
      return null;
    }
View Full Code Here


   *
   * @see IClassFileReader
   */
  public static IClassFileReader createDefaultClassFileReader(String fileName, int decodingFlag){
    try {
      return new ClassFileReader(Util.getFileByteContent(new File(fileName)), decodingFlag);
    } catch(ClassFormatException e) {
      return null;
    } catch(IOException e) {
      return null;
    }
View Full Code Here

      }
      if (!zipEntryName.toLowerCase().endsWith(SuffixConstants.SUFFIX_STRING_class)) {
        return null;
      }
      byte classFileBytes[] = Util.getZipEntryByteContent(zipEntry, zipFile);
      return new ClassFileReader(classFileBytes, decodingFlag);
    } catch(ClassFormatException e) {
      return null;
    } catch(IOException e) {
      return null;
    } finally {
View Full Code Here

   * @see IClassFileReader
   * @since 3.2
   */
  public static IClassFileReader createDefaultClassFileReader(InputStream stream, int decodingFlag) {
    try {
      return new ClassFileReader(Util.getInputStreamAsByteArray(stream, -1), decodingFlag);
    } catch(ClassFormatException e) {
      return null;
    } catch(IOException e) {
      return null;
    }
View Full Code Here

   *
   * @see IClassFileReader
   */
  public static IClassFileReader createDefaultClassFileReader(String fileName, int decodingFlag){
    try {
      return new ClassFileReader(Util.getFileByteContent(new File(fileName)), decodingFlag);
    } catch(ClassFormatException e) {
      return null;
    } catch(IOException e) {
      return null;
    }
View Full Code Here

      }
      if (!zipEntryName.toLowerCase().endsWith(SuffixConstants.SUFFIX_STRING_class)) {
        return null;
      }
      byte classFileBytes[] = Util.getZipEntryByteContent(zipEntry, zipFile);
      return new ClassFileReader(classFileBytes, decodingFlag);
    } catch(ClassFormatException e) {
      return null;
    } catch(IOException e) {
      return null;
    } finally {
View Full Code Here

   * @see IClassFileReader
   * @since 3.2
   */
  public static IClassFileReader createDefaultClassFileReader(InputStream stream, int decodingFlag) {
    try {
      return new ClassFileReader(Util.getInputStreamAsByteArray(stream, -1), decodingFlag);
    } catch(ClassFormatException e) {
      return null;
    } catch(IOException e) {
      return null;
    }
View Full Code Here

   *
   * @see IClassFileReader
   */
  public static IClassFileReader createDefaultClassFileReader(String fileName, int decodingFlag){
    try {
      return new ClassFileReader(Util.getFileByteContent(new File(fileName)), decodingFlag);
    } catch(ClassFormatException e) {
      return null;
    } catch(IOException e) {
      return null;
    }
View Full Code Here

      }
      if (!zipEntryName.toLowerCase().endsWith(SuffixConstants.SUFFIX_STRING_class)) {
        return null;
      }
      byte classFileBytes[] = Util.getZipEntryByteContent(zipEntry, zipFile);
      return new ClassFileReader(classFileBytes, decodingFlag);
    } catch(ClassFormatException e) {
      return null;
    } catch(IOException e) {
      return null;
    } finally {
View Full Code Here

TOP

Related Classes of org.eclipse.jdt.internal.core.util.ClassFileReader

Copyright © 2018 www.massapicom. 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.