Пример #1
0
 /** @since Available in iOS 2.0 and later. */
 public NSStream setSocketSecurityLevel(NSStreamSocketSecurityLevel securityLevel) {
   setProperty(NSStreamProperty.SocketSecurityLevel, securityLevel.value());
   return this;
 }
Пример #2
0
 /** @since Available in iOS 2.0 and later. */
 public NSStreamSocketSecurityLevel getSocketSecurityLevel() {
   NSString val = (NSString) getProperty(NSStreamProperty.SocketSecurityLevel);
   return NSStreamSocketSecurityLevel.valueOf(val);
 }