[jcifs] Re: smb printers with jcifs

Michael Schulze fry26 at genion.de
Sun Jun 16 06:08:25 EST 2002

On Friday 14 June 2002 23:40, Michael B. Allen wrote:
> occured.  I  don't  think  I want four more isXxx methods but I would happy
> with  one  isPrinter.  Or  we  could  have some kind of getType method that
> returns  SmbFile.TYPE_DISK,  SmbFile.TYPE_PRINTER,  SmbFile.TYPE_DEVICE, or
> SmbFile.TYPE_IPC   (in  which  case  we  could  drop  isWorkgroup  and  add

From my point of view I would favor a getType() method. This way one could 
just have a: switch( file.getType()) { case ... case ... case } instead of a
if( file.isDir()){ ....} else { if( file.isFile()) { ... }}

Thanks a lot

More information about the jcifs mailing list