Here you can find the source of getFileName(StringTokenizer s)
Gets the name for the file, eliminating "" and skiping "="
Parameter | Description |
---|---|
s | Token |
public static String getFileName(StringTokenizer s)
//package com.java2s; //License from project: Open Source License import java.util.*; public class Main { /**/*from w w w. jav a 2s .co m*/ * <p> * Gets the name for the file, eliminating "" and skiping "=" * </p> * @param s Token * @return The name of the file */ public static String getFileName(StringTokenizer s) { String val = s.nextToken(); // skip "=" val = s.nextToken(); val = val.replace('"', ' ').trim(); return val; // Only takes first name, second is ignored } }