public NSNetServiceErrorCode getErrorCode() { if (has(Keys.ErrorCode())) { NSNumber val = (NSNumber) get(Keys.ErrorCode()); return NSNetServiceErrorCode.valueOf(val.longValue()); } return null; }
public long getFreeNodes() { if (has(NSFileSystemAttribute.FreeNodes)) { NSNumber val = (NSNumber) get(NSFileSystemAttribute.FreeNodes); return val.longValue(); } return 0; }
public long getSize() { if (has(NSFileSystemAttribute.Size)) { NSNumber val = (NSNumber) get(NSFileSystemAttribute.Size); return val.longValue(); } return 0; }
public NSNetServiceErrorUserInfo setErrorCode(NSNetServiceErrorCode errorCode) { set(Keys.ErrorCode(), NSNumber.valueOf(errorCode.value())); return this; }
/** @since Available in iOS 2.0 and later. */ public NSStream setCurrentOffset(long offset) { setProperty(NSStreamProperty.FileCurrentOffset, NSNumber.valueOf(offset)); return this; }
/** @since Available in iOS 2.0 and later. */ public long getCurrentOffset() { NSNumber val = (NSNumber) getProperty(NSStreamProperty.FileCurrentOffset); return val.longValue(); }
public NSFileSystemAttributes setFreeNodes(long freeNodes) { set(NSFileSystemAttribute.FreeNodes, NSNumber.valueOf(freeNodes)); return this; }
public NSFileSystemAttributes setNodes(long nodes) { set(NSFileSystemAttribute.Nodes, NSNumber.valueOf(nodes)); return this; }
public NSFileSystemAttributes setFreeSize(long freeSize) { set(NSFileSystemAttribute.FreeSize, NSNumber.valueOf(freeSize)); return this; }
public NSFileSystemAttributes setSize(long size) { set(NSFileSystemAttribute.Size, NSNumber.valueOf(size)); return this; }
public NSFileSystemAttributes setSystemNumber(long systemNumber) { set(NSFileSystemAttribute.Number, NSNumber.valueOf(systemNumber)); return this; }