Here you can find the source of stripExtension(String filename)
Parameter | Description |
---|---|
filename | a parameter |
public static String stripExtension(String filename)
//package com.java2s; /******************************************************************************* * Manchester Centre for Integrative Systems Biology * University of Manchester/*from w ww. j a v a 2 s. c om*/ * Manchester M1 7ND * United Kingdom * * Copyright (C) 2007 University of Manchester * * This program is released under the Academic Free License ("AFL") v3.0. * (http://www.opensource.org/licenses/academic.php) *******************************************************************************/ import java.util.*; public class Main { /** * * @param filename * @return String */ public static String stripExtension(String filename) { final String SEPARATOR = "."; //$NON-NLS-1$ final StringTokenizer tokenizer = new StringTokenizer(filename, SEPARATOR); return tokenizer.nextToken(); } }