[jcifs] some rework

Allen, Michael B (RSCH) Michael_B_Allen at ml.com
Wed Jul 10 08:06:45 EST 2002


Look at the getXxx methods Dmitry (e.g. isShare == getShare() != null).

> -----Original Message-----
> From:	Dmitry Khlonin [SMTP:dmitry at khlonins.com]
> Sent:	Tuesday, July 09, 2002 4:45 PM
> To:	Michael B. Allen
> Cc:	jcifs at lists.samba.org
> Subject:	Re: [jcifs] some rework
> 
> Michael B. Allen wrote:
> 
> 
> 	On Sun, 07 Jul 2002 01:59:05 +0400
> 	Dmitry Khlonin  <dmitry at khlonins.com> <mailto:dmitry at khlonins.com> wrote:
> 	
> 	  
> 
> 		I used jcifs as library for developing web-interface for SMB-gate and
> 		was disappointed by schema of getting entries from SmbFile (for group, 
> 		host and directory)
> 		There is only method *String list()* - and nothing like common interface 
> 		for returning entries
> 		of jcifs.smb.NetServerEnum2Response$ServerInfo1, 
> 		jcifs.smb.NetShareEnumResponse$ShareInfo1 and
> 		jcifs.smb.Trans2FindFirst2Response$SmbFindFileBothDirectoryInfo.
> 		I have some patches for jcifs code and
> 		
> 		I think it might be useful.
> 		    
> 
> 
> 	In  theory,  everything  should be available through listFiles(). You might
> 	successfully  argue  that  an addtional SmbFile.getXxx() method is required
> 	but Share or Directory specific interfaces are not necessary and would only
> 	lead to confusion. 
> 	
> 	  
> 
> sorry, I already have find and using this method. But in this case how I may know some about object in this array?
> need some methods like isShare and isHost for addition to isFile, is Directory, isWorkgroup.
> Isn't it?
> 
> 





More information about the jcifs mailing list