FileDocCategorySizeDatePackage
SmbShareInfo.javaAPI DocJCIFS 1.3.17 API2526Tue Oct 18 15:26:24 BST 2011jcifs.smb

SmbShareInfo

public class SmbShareInfo extends Object implements FileEntry

Fields Summary
protected String
netName
protected int
type
protected String
remark
Constructors Summary
public SmbShareInfo()

    
public SmbShareInfo(String netName, int type, String remark)

        this.netName = netName;
        this.type = type;
        this.remark = remark;
    
Methods Summary
public longcreateTime()

        return 0L;
    
public booleanequals(java.lang.Object obj)

        if (obj instanceof SmbShareInfo) {
            SmbShareInfo si = (SmbShareInfo)obj;
            return netName.equals(si.netName);
        }
        return false;
    
public intgetAttributes()

        return SmbFile.ATTR_READONLY | SmbFile.ATTR_DIRECTORY;
    
public java.lang.StringgetName()

        return netName;
    
public intgetType()

        /* 0x80000000 means hidden but SmbFile.isHidden() checks for $ at end
         */
        switch (type & 0xFFFF) {
            case 1:
                return SmbFile.TYPE_PRINTER;
            case 3:
                return SmbFile.TYPE_NAMED_PIPE;
        }
        return SmbFile.TYPE_SHARE;
    
public inthashCode()

        int hashCode = netName.hashCode();
        return hashCode;
    
public longlastModified()

        return 0L;
    
public longlength()

        return 0L;
    
public java.lang.StringtoString()

        return new String( "SmbShareInfo[" +
                "netName=" + netName +
                ",type=0x" + Hexdump.toHexString( type, 8 ) +
                ",remark=" + remark + "]" );