jaulib v1.3.0
Jau Support Library (C++, Java, ..)
Public Member Functions | List of all members
org.jau.fs.DirItem Class Reference

Representing a directory item split into dirname() and basename(). More...

Collaboration diagram for org.jau.fs.DirItem:

Public Member Functions

 DirItem ()
 Empty item w/ . More...
 
 DirItem (final String path)
 Create a dir_item where path is split into dirname and basename after . More...
 
String dirname ()
 Returns the dirname, shall not be empty and denotes . More...
 
String basename ()
 Return the basename, shall not be empty nor contain a dirname. More...
 
String path ()
 Returns a full unix path representation combining dirname() and basename(). More...
 
String toString ()
 
boolean equals (final Object other)
 

Detailed Description

Representing a directory item split into dirname() and basename().

Definition at line 29 of file DirItem.java.

Constructor & Destructor Documentation

◆ DirItem() [1/2]

org.jau.fs.DirItem.DirItem ( )

Empty item w/ .

set for both, dirname and basename

Definition at line 42 of file DirItem.java.

◆ DirItem() [2/2]

org.jau.fs.DirItem.DirItem ( final String  path)

Create a dir_item where path is split into dirname and basename after .

and .. has been reduced.

Parameters
path_the raw path

Definition at line 52 of file DirItem.java.

Here is the call graph for this function:

Member Function Documentation

◆ basename()

String org.jau.fs.DirItem.basename ( )

Return the basename, shall not be empty nor contain a dirname.

Definition at line 63 of file DirItem.java.

Here is the caller graph for this function:

◆ dirname()

String org.jau.fs.DirItem.dirname ( )

Returns the dirname, shall not be empty and denotes .

for current working director.

Definition at line 60 of file DirItem.java.

Here is the caller graph for this function:

◆ equals()

boolean org.jau.fs.DirItem.equals ( final Object  other)

Definition at line 87 of file DirItem.java.

Here is the caller graph for this function:

◆ path()

String org.jau.fs.DirItem.path ( )

Returns a full unix path representation combining dirname() and basename().

Definition at line 68 of file DirItem.java.

Here is the caller graph for this function:

◆ toString()

String org.jau.fs.DirItem.toString ( )

Definition at line 82 of file DirItem.java.

Here is the call graph for this function:
Here is the caller graph for this function:

The documentation for this class was generated from the following file: