Here you can find the source of isAbsolute(String path)
Parameter | Description |
---|---|
path | the chunk path |
public static boolean isAbsolute(String path)
//package com.java2s; //License from project: Apache License public class Main { /**/*from w ww . j a v a2 s .co m*/ * Check if a chunk path is absolute * @param path the chunk path * @return true if the path is absolute, false otherwise */ public static boolean isAbsolute(String path) { return path != null && !path.isEmpty() && path.charAt(0) == '/'; } }