1 17 package org.alfresco.filesys.smb.dcerpc.info; 18 19 import java.util.Vector ; 20 21 import org.alfresco.filesys.smb.dcerpc.DCEBuffer; 22 import org.alfresco.filesys.smb.dcerpc.DCEBufferException; 23 import org.alfresco.filesys.smb.dcerpc.DCEList; 24 import org.alfresco.filesys.smb.dcerpc.DCEReadable; 25 26 31 public class ShareInfoList extends DCEList 32 { 33 34 37 public ShareInfoList() 38 { 39 super(); 40 } 41 42 48 public ShareInfoList(DCEBuffer buf) throws DCEBufferException 49 { 50 super(buf); 51 } 52 53 58 public ShareInfoList(int infoLevel) 59 { 60 super(infoLevel); 61 } 62 63 69 public final ShareInfo getShare(int idx) 70 { 71 return (ShareInfo) getElement(idx); 72 } 73 74 79 protected DCEReadable getNewObject() 80 { 81 return new ShareInfo(getInformationLevel()); 82 } 83 84 89 public final void addShare(ShareInfo share) 90 { 91 92 94 if (getList() == null) 95 setList(new Vector ()); 96 97 99 getList().add(share); 100 } 101 102 107 public final void setShareList(Vector list) 108 { 109 setList(list); 110 } 111 } 112 | Popular Tags |