FileDocCategorySizeDatePackage
LinkerUtil.javaAPI DocphoneME MR2 API (J2ME)3703Wed May 02 17:59:48 BST 2007util

LinkerUtil

public class LinkerUtil extends Object

Fields Summary
public static final String
mainName
public static final String
mainSig
public static final String
constructorName
public static final String
constructorSig
public static final String
staticInitializerName
public static final String
staticInitializerSig
Constructors Summary
Methods Summary
public static intmethodOff(java.lang.String n)

	int moff = n.lastIndexOf( '." );
	if ( moff >= 0 ) return moff;
	// curses. Must work harder.
	// Cannot just say lastIndexOf('/'), as that
	// may get us into the signature.
	int ending = n.indexOf( '(" );
	if ( ending < 0 ) ending = n.length();
	moff = n.lastIndexOf( '/", ending );
	return moff;
    
public static java.lang.String[]parseOptionFile(java.lang.String fname)

	java.util.Vector v = new java.util.Vector();
	java.io.StreamTokenizer in;
	in = new java.io.StreamTokenizer(
	    new java.io.BufferedInputStream(
		new java.io.FileInputStream( fname ) ) );
	in.resetSyntax();
	in.eolIsSignificant( false );
	in.whitespaceChars( 0, 0x20 );
	in.wordChars( '!", '~" );
	in.commentChar('#");

	while ( in.nextToken() != java.io.StreamTokenizer.TT_EOF ){
	    v.addElement( in.sval );
	}

	int n = v.size();
	String olist[] = new String[ n ];
	v.copyInto( olist );
	return olist;
    
public static java.lang.StringsanitizeClassname(java.lang.String classname)


    /*
     * Classes are often written with . as component separator.
     * But in classfiles, as internally in our programs, we use /.
     * So we often want to find all instances of . and change them
     * into /.
     */
       
       
	return classname.replace('.", '/").intern();
    
public static intsigOff(java.lang.String n)

	return n.indexOf( '(" );