text:
<!DOCTYPE html>

    <meta content="en-us" http-equiv="Content-Language" />
    <meta content="text/html; charset=utf-16" http-equiv="Content-Type" />
    <title _locid="PortabilityAnalysis0">.NET Portability Report</title>

.NET Portability Report

                    Submission Id
                    3263bb23-40f5-4176-9f55-97fe4e3276fd

            Portability Summary

                        Assembly
                            ASP.NET 5,Version=v1.0
                            Windows,Version=v8.1
                            .NET Framework,Version=v4.6
                            Windows Phone,Version=v8.1

                            Spring.Core
                                81.02 %
                                61.85 %
                                100.00 %
                                61.85 %

Spring.Core

                                Target type
                                ASP.NET 5,Version=v1.0
                                Windows,Version=v8.1
                                .NET Framework,Version=v4.6
                                Windows Phone,Version=v8.1
                                Recommended changes

                                    Microsoft.CSharp.CSharpCodeProvider

                                        #ctor

                                    Microsoft.VisualBasic.CompareMethod

                                    Microsoft.VisualBasic.CompilerServices.LikeOperator

                                        LikeString(System.String,System.String,Microsoft.VisualBasic.CompareMethod)

                                    Microsoft.Win32.Registry

                                        ClassesRoot

                                        CurrentConfig

                                        CurrentUser

                                        DynData

                                        LocalMachine

                                        PerformanceData

                                        Users

                                    Microsoft.Win32.RegistryKey

                                        GetValue(System.String)

                                        GetValue(System.String,System.Object)

                                        OpenSubKey(System.String,System.Boolean)

                                    System.AppDomain

                                        add_AssemblyResolve(System.ResolveEventHandler)

                                    Remove usage

                                        DefineDynamicAssembly(System.Reflection.AssemblyName,System.Reflection.Emit.AssemblyBuilderAccess,System.String,System.Security.Policy.Evidence,System.Security.PermissionSet,System.Security.PermissionSet,System.Security.PermissionSet,System.Boolean)

                                        get_BaseDirectory

                                    Currently there is no workaround, but we are working on it. Please check back.

                                        get_CurrentDomain

                                    Remove usage

                                        get_DynamicDirectory

                                        GetAssemblies

                                    Remove usage

                                    System.ApplicationException

                                Use other exception types.

                                        #ctor

                                    Use other exception types.

                                        #ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)

                                    Use other exception types.

                                        #ctor(System.String)

                                    Use other exception types.

                                        #ctor(System.String,System.Exception)

                                    Use other exception types.

                                    System.Array

                                Use foreach statement with custom conversion code to handle conversion.

                                        ConvertAll``2(``0[],System.Converter{``0,``1})

                                    Use foreach statement with custom conversion code to handle conversion.

                                    System.Attribute

                                        GetCustomAttribute(System.Reflection.MemberInfo,System.Type)

                                        GetCustomAttribute(System.Reflection.MemberInfo,System.Type,System.Boolean)

                                        GetCustomAttributes(System.Reflection.MemberInfo)

                                        GetCustomAttributes(System.Reflection.MemberInfo,System.Type)

                                        GetCustomAttributes(System.Reflection.MemberInfo,System.Type,System.Boolean)

                                        GetCustomAttributes(System.Reflection.ParameterInfo)

                                        IsDefined(System.Reflection.MemberInfo,System.Type,System.Boolean)

                                    Use System.Reflection.CustomAttributeExtensions.IsDefined() in System.Reflection.Extensions

                                    System.Char

                                        ToLower(System.Char,System.Globalization.CultureInfo)

                                    System.CodeDom.CodeTypeReference

                                        #ctor(System.Type)

                                    System.CodeDom.Compiler.CodeDomProvider

                                        GetTypeOutput(System.CodeDom.CodeTypeReference)

                                    System.Collections.ArrayList

                                        #ctor

                                        #ctor(System.Collections.ICollection)

                                        #ctor(System.Int32)

                                        Adapter(System.Collections.IList)

                                        Add(System.Object)

                                        AddRange(System.Collections.ICollection)

                                        BinarySearch(System.Object,System.Collections.IComparer)

                                        Clear

                                        Clone

                                        Contains(System.Object)

                                        CopyTo(System.Array,System.Int32)

                                        get_Count

                                        get_Item(System.Int32)

                                        GetEnumerator

                                        GetRange(System.Int32,System.Int32)

                                        Insert(System.Int32,System.Object)

                                        Remove(System.Object)

                                        RemoveRange(System.Int32,System.Int32)

                                        Reverse

                                        set_Item(System.Int32,System.Object)

                                        Sort

                                        Sort(System.Collections.IComparer)

                                        ToArray

                                        ToArray(System.Type)

                                    System.Collections.Comparer

                                        Default

                                    System.Collections.Generic.SortedList`2

                                Currently there is no workaround, but we are working on it. Please check back.

                                        #ctor(System.Collections.Generic.IComparer{`0})

                                    System.Collections.Hashtable

                                        #ctor

                                        #ctor(System.Collections.IDictionary)

                                        #ctor(System.Int32)

                                        #ctor(System.Int32,System.Single)

                                        #ctor(System.Int32,System.Single,System.Collections.IHashCodeProvider,System.Collections.IComparer)

                                        #ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)

                                        Add(System.Object,System.Object)

                                        Clear

                                        Clone

                                        Contains(System.Object)

                                        ContainsKey(System.Object)

                                        ContainsValue(System.Object)

                                        CopyTo(System.Array,System.Int32)

                                        get_Count

                                        get_IsFixedSize

                                        get_IsReadOnly

                                        get_Item(System.Object)

                                        get_Keys

                                        get_SyncRoot

                                        get_Values

                                        GetEnumerator

                                        GetObjectData(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)

                                        Remove(System.Object)

                                        set_Item(System.Object,System.Object)

                                    System.Collections.IHashCodeProvider

                                    System.Collections.SortedList

                                        #ctor

                                        #ctor(System.Collections.IComparer)

                                    System.Collections.Specialized.CollectionsUtil

                                        CreateCaseInsensitiveHashtable(System.Collections.IDictionary)

                                    System.Collections.Specialized.HybridDictionary

                                        #ctor

                                        #ctor(System.Int32)

                                    System.Collections.Specialized.ListDictionary

                                        #ctor

                                    System.Collections.Specialized.NameObjectCollectionBase

                                        GetEnumerator

                                    System.Collections.Specialized.NameValueCollection

                                        #ctor

                                        #ctor(System.Int32)

                                        Add(System.Collections.Specialized.NameValueCollection)

                                        Add(System.String,System.String)

                                        Get(System.String)

                                        get_AllKeys

                                        get_Item(System.String)

                                        Set(System.String,System.String)

                                        set_Item(System.String,System.String)

                                    System.Collections.Specialized.OrderedDictionary

                                        #ctor(System.Collections.IEqualityComparer)

                                        #ctor(System.Int32)

                                        Add(System.Object,System.Object)

                                        Contains(System.Object)

                                        get_Count

                                        get_Item(System.Object)

                                        get_Keys

                                        GetEnumerator

                                        Remove(System.Object)

                                        set_Item(System.Object,System.Object)

                                    System.Collections.Specialized.StringCollection

                                        #ctor

                                        Add(System.String)

                                        get_Count

                                        get_Item(System.Int32)

                                    System.Collections.Stack

                                        #ctor

                                        get_Count

                                        Peek

                                        Pop

                                        Push(System.Object)

                                    System.ComponentModel.ComponentResourceManager

                                        #ctor(System.Type)

                                        ApplyResources(System.Object,System.String,System.Globalization.CultureInfo)

                                    System.ComponentModel.EnumConverter

                                        #ctor(System.Type)

                                    System.ComponentModel.EventHandlerList

                                        #ctor

                                        AddHandler(System.Object,System.Delegate)

                                        get_Item(System.Object)

                                        RemoveHandler(System.Object,System.Delegate)

                                    System.ComponentModel.InvalidEnumArgumentException

                                        #ctor(System.String)

                                    System.ComponentModel.ITypeDescriptorContext

                                Currently there is no workaround, but we are working on it. Please check back.

                                    System.ComponentModel.MemberDescriptor

                                        get_Name

                                    System.ComponentModel.PropertyDescriptor

                                    System.ComponentModel.PropertyDescriptorCollection

                                        GetEnumerator

                                    System.ComponentModel.TimeSpanConverter

                                        #ctor

                                        ConvertFrom(System.ComponentModel.ITypeDescriptorContext,System.Globalization.CultureInfo,System.Object)

                                    System.ComponentModel.TypeConverter

                                        #ctor

                                        CanConvertFrom(System.ComponentModel.ITypeDescriptorContext,System.Type)

                                        CanConvertFrom(System.Type)

                                        CanConvertTo(System.ComponentModel.ITypeDescriptorContext,System.Type)

                                        CanConvertTo(System.Type)

                                        ConvertFrom(System.ComponentModel.ITypeDescriptorContext,System.Globalization.CultureInfo,System.Object)

                                        ConvertFrom(System.Object)

                                        ConvertFromInvariantString(System.String)

                                        ConvertTo(System.ComponentModel.ITypeDescriptorContext,System.Globalization.CultureInfo,System.Object,System.Type)

                                        ConvertTo(System.Object,System.Type)

                                    System.ComponentModel.TypeConverterAttribute

                                        #ctor(System.Type)

                                    System.ComponentModel.TypeDescriptor

                                        GetConverter(System.Object)

                                        GetConverter(System.Type)

                                    Currently there is no workaround, but we are working on it. Please check back.

                                        GetProperties(System.Object)

                                    System.Configuration.ClientSettingsSection

                                        get_Settings

                                    System.Configuration.ConfigurationElementCollection

                                Use configuration appropriate for your application model.  For portable Framework Components, expose API for configuration on type

                                        GetEnumerator

                                    Use configuration appropriate for your application model.  For portable Framework Components, expose API for configuration on type

                                    System.Configuration.ConfigurationErrorsException

                                        #ctor(System.String,System.Exception)

                                        #ctor(System.String,System.Exception,System.String,System.Int32)

                                        #ctor(System.String,System.Exception,System.Xml.XmlNode)

                                        GetFilename(System.Xml.XmlNode)

                                        GetLineNumber(System.Xml.XmlNode)

                                    System.Configuration.ConfigurationException

                                    System.Configuration.ConfigurationManager

                                Remove usage: track configuration via alternate means.

                                        get_ConnectionStrings

                                    Remove usage: track configuration via alternate means.

                                        GetSection(System.String)

                                    Remove usage: track configuration via alternate means.

                                        RefreshSection(System.String)

                                    Remove usage: track configuration via alternate means.

                                    System.Configuration.ConfigurationSection

                                Use configuration appropriate for your application model.  For portable Framework Components, expose API for configuration on type

                                    System.Configuration.ConnectionStringSettings

                                        get_ConnectionString

                                        get_Name

                                        get_ProviderName

                                    System.Configuration.ConnectionStringSettingsCollection

                                    System.Configuration.IConfigurationSectionHandler

                                        Create(System.Object,System.Object,System.Xml.XmlNode)

                                    System.Configuration.Internal.IConfigErrorInfo

                                    System.Configuration.Internal.IInternalConfigSystem

                                    System.Configuration.NameValueFileSectionHandler

                                    System.Configuration.NameValueSectionHandler

                                        #ctor

                                        Create(System.Object,System.Object,System.Xml.XmlNode)

                                    System.Configuration.SettingElement

                                        get_Name

                                        get_Value

                                    System.Configuration.SettingElementCollection

                                    System.Configuration.SettingValueElement

                                        get_ValueXml

                                    System.Console

                                        get_Error

                                        get_Out

                                        WriteLine(System.String)

                                    System.Convert

                                        ChangeType(System.Object,System.TypeCode)

                                        GetTypeCode(System.Object)

                                    System.Converter`2

                                Remove usage.  Implement conversion code yourself if needed.

                                        #ctor(System.Object,System.IntPtr)

                                    Remove usage.  Implement conversion code yourself if needed.

                                    System.Delegate

                                Use System.Reflection.RuntimeReflectionExtensions.GetMethodInfo

                                        CreateDelegate(System.Type,System.Object,System.String)

                                    Use MethodInfo.CreateDelegate

                                        CreateDelegate(System.Type,System.Object,System.String,System.Boolean)

                                    Use MethodInfo.CreateDelegate

                                        CreateDelegate(System.Type,System.Reflection.MethodInfo)

                                    Use MethodInfo.CreateDelegate

                                        CreateDelegate(System.Type,System.Type,System.String)

                                    Use MethodInfo.CreateDelegate

                                        get_Method

                                    Use System.Reflection.RuntimeReflectionExtensions.GetMethodInfo

                                    System.Diagnostics.StackFrame

                                        GetMethod

                                    System.Diagnostics.StackTrace

                                Currently there is no workaround, but we are working on it. Please check back.

                                        #ctor

                                    Currently there is no workaround, but we are working on it. Please check back.

                                        get_FrameCount

                                        GetFrame(System.Int32)

                                    System.Diagnostics.Trace

                                        Assert(System.Boolean,System.String)

                                    System.Drawing.Color

                                        FromArgb(System.Int32,System.Int32,System.Int32,System.Int32)

                                        FromKnownColor(System.Drawing.KnownColor)

                                    System.Drawing.KnownColor

                                    System.Environment

                                        Exit(System.Int32)

                                    Use Environment.FailFast(string, Exception)

                                        get_Version

                                    Do not use.  Choose action based feature availability, not OS / Platform

                                        GetCommandLineArgs

                                        GetEnvironmentVariable(System.String)

                                        GetFolderPath(System.Environment.SpecialFolder)

                                    System.Environment.SpecialFolder

                                    System.Exception

                                Remove.  Getting rid of other usage of SerializationInfo will remove the need for this method.

                                        #ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)

                                    Remove.  Ctor overload taking SerializationInfo is not applicable in new surface area

                                        GetObjectData(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)

                                    Remove.  Getting rid of other usage of SerializationInfo will remove the need for this method.

                                        GetType

                                    False positive (GetType() from Object is sufficient)

                                    System.GenericUriParser

                                        #ctor(System.GenericUriParserOptions)

                                    System.GenericUriParserOptions

                                    System.Globalization.CultureInfo

                                        #ctor(System.String,System.Boolean)

                                        CreateSpecificCulture(System.String)

                                    System.ICloneable

                                Remove usage.  Implement cloning operation yourself if needed.

                                        Clone

                                    Remove usage.  Implement cloning operation yourself if needed.

                                    System.IConvertible

                                Remove usage

                                    System.IO.Directory

                                        GetCurrentDirectory

                                        GetFiles(System.String,System.String,System.IO.SearchOption)

                                    System.IO.DirectoryInfo

                                        get_Root

                                    System.IO.DirectoryNotFoundException

                                    System.IO.File

                                        Exists(System.String)

                                    System.IO.FileAccess

                                    System.IO.FileInfo

                                        #ctor(System.String)

                                        get_Directory

                                        get_DirectoryName

                                    System.IO.FileLoadException

                                    System.IO.FileMode

                                    System.IO.FileShare

                                    System.IO.FileStream

                                        #ctor(System.String,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare)

                                    System.IO.FileSystemInfo

                                        get_Exists

                                        get_FullName

                                    System.IO.Path

                                        AltDirectorySeparatorChar

                                        DirectorySeparatorChar

                                    System.IO.SearchOption

                                    System.IO.Stream

                                Use Dispose instead

                                        Close

                                    Use Dispose instead

                                    System.MarshalByRefObject

                                Remove usage: Remoting is no longer available

                                    System.MissingMethodException

                                Use MissingMemberException instead.  May be brought back.

                                        #ctor(System.String,System.String)

                                    Use MissingMemberException instead.

                                    System.Net.WebRequest

                                Use System.Net.Http.HttpClient.SendAsync (returns an HttpResponseMessage)

                                        GetResponse

                                    Use System.Net.Http.HttpClient.SendAsync (returns an HttpResponseMessage)

                                    System.NonSerializedAttribute

                                Remove usage

                                        #ctor

                                    Remove usage

                                    System.Reflection.Assembly

                                Use AssemblyLoadContext

                                        get_Location

                                    Remove usage

                                        get_ReflectionOnly

                                        GetAssembly(System.Type)

                                        GetCustomAttributes(System.Type,System.Boolean)

                                        GetExecutingAssembly

                                    typeof(CurrentType).GetTypeInfo().Assembly

                                        GetType(System.String,System.Boolean,System.Boolean)

                                        GetTypes

                                    Use Assembly.DefinedTypes

                                        Load(System.String)

                                    use Assembly.Load(new AssemblyName(string))

                                        LoadFrom(System.String)

                                    Use AssemblyLoadContext

                                        LoadWithPartialName(System.String)

                                    System.Reflection.Binder

                                Use an overload that does not take a Binder.

                                    System.Reflection.BindingFlags

                                    System.Reflection.CustomAttributeData

                                        get_Constructor

                                        GetCustomAttributes(System.Reflection.MemberInfo)

                                        GetCustomAttributes(System.Reflection.ParameterInfo)

                                    System.Reflection.CustomAttributeFormatException

                                    System.Reflection.CustomAttributeNamedArgument

                                        get_MemberInfo

                                    System.Reflection.Emit.AssemblyBuilder

                                        DefineDynamicModule(System.String,System.Boolean)

                                        Save(System.String)

                                    System.Reflection.Emit.AssemblyBuilderAccess

                                    System.Reflection.Emit.ConstructorBuilder

                                        GetILGenerator

                                    System.Reflection.Emit.CustomAttributeBuilder

                                        #ctor(System.Reflection.ConstructorInfo,System.Object[])

                                        #ctor(System.Reflection.ConstructorInfo,System.Object[],System.Reflection.PropertyInfo[],System.Object[])

                                        #ctor(System.Reflection.ConstructorInfo,System.Object[],System.Reflection.PropertyInfo[],System.Object[],System.Reflection.FieldInfo[],System.Object[])

                                    System.Reflection.Emit.DynamicMethod

                                        #ctor(System.String,System.Type,System.Type[],System.Reflection.Module,System.Boolean)

                                        GetILGenerator

                                    System.Reflection.Emit.EventBuilder

                                        SetAddOnMethod(System.Reflection.Emit.MethodBuilder)

                                        SetRemoveOnMethod(System.Reflection.Emit.MethodBuilder)

                                    System.Reflection.Emit.FieldBuilder

                                    System.Reflection.Emit.GenericTypeParameterBuilder

                                        SetBaseTypeConstraint(System.Type)

                                        SetGenericParameterAttributes(System.Reflection.GenericParameterAttributes)

                                        SetInterfaceConstraints(System.Type[])

                                    System.Reflection.Emit.ILGenerator

                                        DeclareLocal(System.Type)

                                        DefineLabel

                                        Emit(System.Reflection.Emit.OpCode)

                                        Emit(System.Reflection.Emit.OpCode,System.Byte)

                                        Emit(System.Reflection.Emit.OpCode,System.Double)

                                        Emit(System.Reflection.Emit.OpCode,System.Int16)

                                        Emit(System.Reflection.Emit.OpCode,System.Int32)

                                        Emit(System.Reflection.Emit.OpCode,System.Int64)

                                        Emit(System.Reflection.Emit.OpCode,System.Reflection.ConstructorInfo)

                                        Emit(System.Reflection.Emit.OpCode,System.Reflection.Emit.Label)

                                        Emit(System.Reflection.Emit.OpCode,System.Reflection.Emit.LocalBuilder)

                                        Emit(System.Reflection.Emit.OpCode,System.Reflection.FieldInfo)

                                        Emit(System.Reflection.Emit.OpCode,System.Reflection.MethodInfo)

                                        Emit(System.Reflection.Emit.OpCode,System.Single)

                                        Emit(System.Reflection.Emit.OpCode,System.String)

                                        Emit(System.Reflection.Emit.OpCode,System.Type)

                                        EmitCall(System.Reflection.Emit.OpCode,System.Reflection.MethodInfo,System.Type[])

                                        MarkLabel(System.Reflection.Emit.Label)

                                    System.Reflection.Emit.Label

                                    System.Reflection.Emit.LocalBuilder

                                    System.Reflection.Emit.MethodBuilder

                                        DefineGenericParameters(System.String[])

                                        DefineParameter(System.Int32,System.Reflection.ParameterAttributes,System.String)

                                        GetILGenerator

                                        SetCustomAttribute(System.Reflection.Emit.CustomAttributeBuilder)

                                    System.Reflection.Emit.ModuleBuilder

                                        DefineType(System.String,System.Reflection.TypeAttributes)

                                        DefineType(System.String,System.Reflection.TypeAttributes,System.Type)

                                    System.Reflection.Emit.ParameterBuilder

                                        SetCustomAttribute(System.Reflection.Emit.CustomAttributeBuilder)

                                    System.Reflection.Emit.PropertyBuilder

                                        SetGetMethod(System.Reflection.Emit.MethodBuilder)

                                        SetSetMethod(System.Reflection.Emit.MethodBuilder)

                                    System.Reflection.Emit.TypeBuilder

                                        AddInterfaceImplementation(System.Type)

                                        CreateType

                                        DefineConstructor(System.Reflection.MethodAttributes,System.Reflection.CallingConventions,System.Type[])

                                        DefineEvent(System.String,System.Reflection.EventAttributes,System.Type)

                                        DefineField(System.String,System.Type,System.Reflection.FieldAttributes)

                                        DefineMethod(System.String,System.Reflection.MethodAttributes,System.Reflection.CallingConventions,System.Type,System.Type[])

                                        DefineMethod(System.String,System.Reflection.MethodAttributes,System.Type,System.Type[])

                                        DefineMethodOverride(System.Reflection.MethodInfo,System.Reflection.MethodInfo)

                                        DefineProperty(System.String,System.Reflection.PropertyAttributes,System.Type,System.Type[])

                                        SetCustomAttribute(System.Reflection.Emit.CustomAttributeBuilder)

                                    System.Reflection.ICustomAttributeProvider

                                        GetCustomAttributes(System.Boolean)

                                    System.Reflection.MemberFilter

                                        #ctor(System.Object,System.IntPtr)

                                    System.Reflection.MemberInfo

                                use "is FieldInfo", "is PropertyInfo", etc

                                        get_MemberType

                                    use "is FieldInfo", "is PropertyInfo", etc

                                    System.Reflection.MemberTypes

                                Use is operator.  Example:  if (membertype == membertypes.Field) --> if (member is FieldInfo)

                                    System.Reflection.MethodBase

                                        GetCurrentMethod

                                    System.Reflection.MethodInfo

                                        get_ReturnTypeCustomAttributes

                                    System.Reflection.Module

                                        GetType(System.String,System.Boolean)

                                        op_Equality(System.Reflection.Module,System.Reflection.Module)

                                    System.Reflection.ParameterInfo

                                        GetCustomAttributes(System.Boolean)

                                        GetCustomAttributes(System.Type,System.Boolean)

                                    System.Reflection.ParameterModifier

                                Use an overload that does not take a ParameterModifier array.

                                    System.Reflection.PropertyInfo

                                Use PropertyInfo.SetMethod property

                                        GetGetMethod

                                    Use PropertyInfo.GetMethod property

                                        GetGetMethod(System.Boolean)

                                    Use PropertyInfo.GetMethod property

                                        GetSetMethod

                                    Use PropertyInfo.SetMethod property

                                        GetSetMethod(System.Boolean)

                                    Use PropertyInfo.SetMethod property

                                    System.ResolveEventArgs

                                Use AssemblyLoadContext

                                        get_Name

                                    Use AssemblyLoadContext

                                    System.ResolveEventHandler

                                Use AssemblyLoadContext

                                        #ctor(System.Object,System.IntPtr)

                                    Use AssemblyLoadContext

                                    System.Resources.ResourceManager

                                Can now only get strings.  Use manifest resources for other types of objects

                                        get_BaseName

                                        GetObject(System.String,System.Globalization.CultureInfo)

                                    Can now only get strings.  Use manifest resources for other types of objects

                                        GetResourceSet(System.Globalization.CultureInfo,System.Boolean,System.Boolean)

                                    System.Resources.ResourceSet

                                        GetEnumerator

                                    System.Runtime.InteropServices._Assembly

                                        GetTypes

                                    System.Runtime.InteropServices.RuntimeEnvironment

                                Remove usage

                                        get_SystemConfigurationFile

                                    System.Runtime.Remoting.IRemotingTypeInfo

                                        CanCastTo(System.Type,System.Object)

                                    System.Runtime.Remoting.Messaging.CallContext

                                Consider using System.Threading.AsyncLocal<T>

                                        FreeNamedDataSlot(System.String)

                                        GetData(System.String)

                                        SetData(System.String,System.Object)

                                    System.Runtime.Remoting.Proxies.RealProxy

                                Remove usage

                                        GetProxiedType

                                    System.Runtime.Remoting.RemotingServices

                                Remove usage

                                        GetRealProxy(System.Object)

                                    Remove usage

                                        IsTransparentProxy(System.Object)

                                    System.Runtime.Serialization.FormatterServices

                                        GetSerializableMembers(System.Type,System.Runtime.Serialization.StreamingContext)

                                    System.Runtime.Serialization.IDeserializationCallback

                                        OnDeserialization(System.Object)

                                    System.Runtime.Serialization.ISerializable

                                        GetObjectData(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)

                                    System.Runtime.Serialization.SerializationInfo

                                either 1) Delete Serialization info from exceptions (since this can't be remoted) or 2) Use a different serialization technology if not for exceptions.

                                        AddValue(System.String,System.Int32)

                                        AddValue(System.String,System.Int64)

                                        AddValue(System.String,System.Object)

                                    Remove serialization constructors on custom Exception types

                                        AddValue(System.String,System.Object,System.Type)

                                    either 1) Delete Serialization info from exceptions (since this can't be remoted) or 2) Use a different serialization technology if not for exceptions.

                                        GetInt32(System.String)

                                        GetString(System.String)

                                    Remove serialization constructors on custom Exception types

                                        GetValue(System.String,System.Type)

                                    either 1) Delete Serialization info from exceptions (since this can't be remoted) or 2) Use a different serialization technology if not for exceptions.

                                    System.Security.CodeAccessPermission

                                Remove usage

                                        Demand

                                    Remove usage

                                        RevertAssert

                                    Remove usage

                                    System.Security.IStackWalk

                                        Assert

                                    System.Security.Permissions.PermissionState

                                    System.Security.Permissions.SecurityAction

                                Remove usage

                                    System.Security.Permissions.SecurityAttribute

                                Remove usage

                                    System.Security.Permissions.SecurityPermission

                                        #ctor(System.Security.Permissions.SecurityPermissionFlag)

                                    System.Security.Permissions.SecurityPermissionAttribute

                                Remove usage

                                        #ctor(System.Security.Permissions.SecurityAction)

                                    Remove usage

                                    System.Security.Permissions.SecurityPermissionFlag

                                    System.Security.PermissionSet

                                        #ctor(System.Security.Permissions.PermissionState)

                                        Demand

                                    System.Security.Policy.Evidence

                                    System.Security.SecurityTreatAsSafeAttribute

                                        #ctor

                                    System.SerializableAttribute

                                Remove this attribute

                                        #ctor

                                    Remove this attribute

                                    System.String

                                Use CultureInfo.TextInfo.ToLower(String) instead

                                        Compare(System.String,System.String,System.Boolean)

                                    String.Compare(string, string, StringComparison.CurrentCultureIgnoreCase)

                                        Compare(System.String,System.String,System.Boolean,System.Globalization.CultureInfo)

                                    Use String.Compare(string,string,string,StringComparison) instead.   Alternativaly, use CultureInfo.CompareInfo.Compare()

                                        Copy(System.String)

                                        ToLower(System.Globalization.CultureInfo)

                                    Use CultureInfo.TextInfo.ToLower(String) instead

                                    System.SystemException

                                        #ctor(System.String)

                                    System.Text.Encoding

                                Use GetEncoding(0)

                                        get_Default

                                    Use GetEncoding(0)

                                    System.Threading.Thread

                                        get_CurrentThread

                                        get_CurrentUICulture

                                    Use System.Globalization.CultureInfo.CurrentUICulture

                                        get_ManagedThreadId

                                        get_Name

                                        Interrupt

                                    Do not use.  Portable code needs to run on platforms that do not support interruptable wait operations.  Even in the full CLR, this is highly unreliable.

                                        Sleep(System.Int32)

                                    System.Threading.ThreadInterruptedException

                                        #ctor

                                        #ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)

                                        #ctor(System.String)

                                        #ctor(System.String,System.Exception)

                                    System.Type

                                Equivalent available: Add using for System.Reflection, and reference System.Reflection.TypeExtensions

                                        EmptyTypes

                                    new Type[0] (or create your own static property which returns a cached version of this)

                                        FindMembers(System.Reflection.MemberTypes,System.Reflection.BindingFlags,System.Reflection.MemberFilter,System.Object)

                                        get_Assembly

                                    .GetTypeInfo().Assembly

                                        get_BaseType

                                    .GetTypeInfo().BaseType

                                        get_ContainsGenericParameters

                                    .GetTypeInfo().ContainsGenericParameters

                                        get_DefaultBinder

                                        get_GenericParameterAttributes

                                        get_IsAbstract

                                    .GetTypeInfo().IsAbstract

                                        get_IsClass

                                    .GetTypeInfo().IsClass

                                        get_IsEnum

                                    .GetTypeInfo().IsEnum

                                        get_IsGenericType

                                    .GetTypeInfo().IsGenericType

                                        get_IsGenericTypeDefinition

                                    .GetTypeInfo().IsGenericTypeDefinition

                                        get_IsInterface

                                    .GetTypeInfo().IsInterface

                                        get_IsNestedAssembly

                                    .GetTypeInfo().IsNestedAssembly

                                        get_IsNestedFamORAssem

                                    .GetTypeInfo().IsNestedFamORAssem

                                        get_IsNestedPrivate

                                    .GetTypeInfo().IsNestedPrivate

                                        get_IsNestedPublic

                                    .GetTypeInfo().IsNestedPublic

                                        get_IsPrimitive

                                    .GetTypeInfo().IsPrimitive

                                        get_IsSealed

                                    .GetTypeInfo().IsSealed

                                        get_IsValueType

                                    .GetTypeInfo().IsValueType

                                        get_IsVisible

                                    .GetTypeInfo().IsVisible

                                        get_Module

                                    Use System.Reflection.AssemblyExtensions.GetModules(),  iterate over returned collection.

                                        GetConstructor(System.Reflection.BindingFlags,System.Reflection.Binder,System.Type[],System.Reflection.ParameterModifier[])

                                    Use GetConstructor(Type[]) to search for public constructors by parameter type or filter the results of GetConstructors(BindingFlags) using LINQ for other queries.

                                        GetConstructor(System.Type[])

                                        GetConstructors

                                        GetConstructors(System.Reflection.BindingFlags)

                                    Equivalent available: Add using for System.Reflection, and reference System.Reflection.TypeExtensions

                                        GetEvent(System.String)

                                        GetEvents

                                        GetEvents(System.Reflection.BindingFlags)

                                        GetField(System.String,System.Reflection.BindingFlags)

                                        GetFields(System.Reflection.BindingFlags)

                                        GetGenericArguments

                                        GetGenericParameterConstraints

                                    .GetTypeInfo().GetGenericParameterConstraints()

                                        GetInterfaceMap(System.Type)

                                        GetInterfaces

                                        GetMethod(System.String)

                                        GetMethod(System.String,System.Reflection.BindingFlags)

                                    Equivalent available: Add using for System.Reflection, and reference System.Reflection.TypeExtensions

                                        GetMethod(System.String,System.Reflection.BindingFlags,System.Reflection.Binder,System.Reflection.CallingConventions,System.Type[],System.Reflection.ParameterModifier[])

                                    Use GetMethod(string, Type[]) to search for public methods by name and parameter type or filter the results of GetMethods(BindingFlags) using LINQ for other queries.

                                        GetMethod(System.String,System.Reflection.BindingFlags,System.Reflection.Binder,System.Type[],System.Reflection.ParameterModifier[])

                                    Use GetMethod(string, Type[]) to search for public methods by name and parameter type or filter the results of GetMethods(BindingFlags) using LINQ for other queries.

                                        GetMethod(System.String,System.Type[])

                                        GetMethods

                                        GetMethods(System.Reflection.BindingFlags)

                                        GetProperties

                                        GetProperties(System.Reflection.BindingFlags)

                                        GetProperty(System.String)

                                        GetProperty(System.String,System.Reflection.BindingFlags)

                                        GetProperty(System.String,System.Reflection.BindingFlags,System.Reflection.Binder,System.Type,System.Type[],System.Reflection.ParameterModifier[])

                                    Use GetProperty(string, Type, Type[]) to search for public properties by name, return type, and parameter types or filter the results of GetMethods(BindingFlags) using LINQ for other queries.

                                        GetType

                                        IsAssignableFrom(System.Type)

                                        IsInstanceOfType(System.Object)

                                        IsSubclassOf(System.Type)

                                    .GetTypeInfo().IsSubclassOf

                                    System.TypeCode

                                Use Type or RuntimeTypeHandle instead.

                                    System.UriFormatException

                                        #ctor(System.String)

                                    System.UriParser

                                        IsKnownScheme(System.String)

                                        Register(System.UriParser,System.String,System.Int32)

                                    System.Xml.Schema.ValidationEventArgs

                                        get_Exception

                                        get_Message

                                        get_Severity

                                    System.Xml.Schema.ValidationEventHandler

                                        #ctor(System.Object,System.IntPtr)

                                    System.Xml.Schema.XmlSchemaException

                                        get_LineNumber

                                    System.Xml.Schema.XmlSchemaSet

                                        #ctor

                                        Add(System.String,System.Xml.XmlReader)

                                        Add(System.Xml.Schema.XmlSchemaSet)

                                        Compile

                                        Contains(System.String)

                                        get_IsCompiled

                                        set_XmlResolver(System.Xml.XmlResolver)

                                    System.Xml.Schema.XmlSchemaValidationException

                                Currently there is no workaround, but we are working on it. Please check back.

                                    System.Xml.Schema.XmlSeverityType

                                    System.Xml.ValidationType

                                Currently there is no workaround, but we are working on it. Please check back.

                                    System.Xml.XmlAttribute

                                        #ctor(System.String,System.String,System.String,System.Xml.XmlDocument)

                                        CloneNode(System.Boolean)

                                        get_OwnerElement

                                    System.Xml.XmlAttributeCollection

                                        get_ItemOf(System.Int32)

                                        get_ItemOf(System.String)

                                    System.Xml.XmlDocument

                                        #ctor

                                        get_DocumentElement

                                        Load(System.IO.Stream)

                                        Load(System.IO.TextReader)

                                        Load(System.String)

                                    Use Load(System.IO.Stream) overload

                                        Load(System.Xml.XmlReader)

                                        LoadXml(System.String)

                                        ReadNode(System.Xml.XmlReader)

                                    System.Xml.XmlElement

                                        #ctor(System.String,System.String,System.String,System.Xml.XmlDocument)

                                        CloneNode(System.Boolean)

                                        GetAttribute(System.String)

                                        GetAttribute(System.String,System.String)

                                        GetAttributeNode(System.String)

                                        GetElementsByTagName(System.String)

                                        HasAttribute(System.String)

                                    System.Xml.XmlNode

                                        get_Attributes

                                        get_ChildNodes

                                        get_InnerText

                                        get_LocalName

                                        get_Name

                                        get_NamespaceURI

                                        get_NodeType

                                        get_OuterXml

                                        get_Prefix

                                        get_Value

                                        RemoveChild(System.Xml.XmlNode)

                                        SelectNodes(System.String,System.Xml.XmlNamespaceManager)

                                        SelectSingleNode(System.String)

                                    Create one of the XPathNavigator implementations. There are 3 implementations of the CreateNavigator () method in  XPathDocument, System.Xml.XPath.XDocument, and System.Xml.XPath.XmlDocument, use this to find your node.

                                        SelectSingleNode(System.String,System.Xml.XmlNamespaceManager)

                                    Create one of the XPathNavigator implementations. There are 3 implementations of the CreateNavigator () method in  XPathDocument, System.Xml.XPath.XDocument, and System.Xml.XPath.XmlDocument, use this to find your node.

                                    System.Xml.XmlNodeList

                                        get_Count

                                        GetEnumerator

                                        Item(System.Int32)

                                    System.Xml.XmlNodeReader

                                        #ctor(System.Xml.XmlNode)

                                    System.Xml.XmlReader

                                Use Dispose() instead.

                                        Close

                                    Use Dispose() instead.

                                    System.Xml.XmlReaderSettings

                                Currently there is no workaround, but we are working on it. Please check back.

                                        add_ValidationEventHandler(System.Xml.Schema.ValidationEventHandler)

                                        get_Schemas

                                    Currently there is no workaround, but we are working on it. Please check back.

                                        set_ValidationType(System.Xml.ValidationType)

                                    Currently there is no workaround, but we are working on it. Please check back.

                                    System.Xml.XmlResolver

                                        GetEntity(System.Uri,System.String,System.Type)

                                    System.Xml.XmlTextReader

                                        #ctor(System.String,System.IO.Stream)

                                    System.Xml.XmlUrlResolver

                                        #ctor

                                        ResolveUri(System.Uri,System.String)

                    Back to Summary


text:
package gui.simpleUI;

@Deprecated
public interface EditItem {
	/**
	 * @param group
	 *            Use this parameter to add {@link ModifierInterface} -Objects
	 *            to it. All the basic modifiers are contained in the
	 *            {@link SimpleUIv1} class
	 * @param message
	 */
	public void customizeScreen(ModifierGroup group, Object message);

}

redpajama_set_name: RedPajamaGithub


text:
package org.apache.ignite.internal.util.nio.ssl;

import java.io.IOException;
import java.nio.ByteBuffer;
import java.nio.ByteOrder;
import java.nio.channels.SocketChannel;
import javax.net.ssl.SSLEngine;
import javax.net.ssl.SSLEngineResult;
import javax.net.ssl.SSLEngineResult.HandshakeStatus;
import javax.net.ssl.SSLEngineResult.Status;
import javax.net.ssl.SSLException;
import org.apache.ignite.IgniteCheckedException;
import org.apache.ignite.IgniteLogger;
import org.apache.ignite.internal.util.nio.GridNioException;
import org.apache.ignite.internal.util.typedef.internal.U;

import static javax.net.ssl.SSLEngineResult.HandshakeStatus.FINISHED;
import static javax.net.ssl.SSLEngineResult.HandshakeStatus.NEED_TASK;
import static javax.net.ssl.SSLEngineResult.HandshakeStatus.NEED_UNWRAP;
import static javax.net.ssl.SSLEngineResult.HandshakeStatus.NOT_HANDSHAKING;
import static javax.net.ssl.SSLEngineResult.Status.BUFFER_UNDERFLOW;
import static javax.net.ssl.SSLEngineResult.Status.CLOSED;
import static javax.net.ssl.SSLEngineResult.Status.OK;

/**
 *
 */
public class BlockingSslHandler {
    /** Logger. */
    private IgniteLogger log;

    /** Socket channel. */
    private SocketChannel ch;

    /** Order. */
    private final ByteOrder order;

    /** SSL engine. */
    private final SSLEngine sslEngine;

    /** Handshake completion flag. */
    private boolean handshakeFinished;

    /** Engine handshake status. */
    private HandshakeStatus handshakeStatus;

    /** Output buffer into which encrypted data will be written. */
    private ByteBuffer outNetBuf;

    /** Input buffer from which SSL engine will decrypt data. */
    private ByteBuffer inNetBuf;

    /** Empty buffer used in handshake procedure.  */
    private ByteBuffer handshakeBuf = ByteBuffer.allocate(0);

    /** Application buffer. */
    private ByteBuffer appBuf;

    /**
     * @param sslEngine SSLEngine.
     * @param ch Socket channel.
     * @param directBuf Direct buffer flag.
     * @param order Byte order.
     * @param log Logger.
     */
    public BlockingSslHandler(SSLEngine sslEngine,
        SocketChannel ch,
        boolean directBuf,
        ByteOrder order,
        IgniteLogger log)
        throws SSLException {
        this.ch = ch;
        this.log = log;
        this.sslEngine = sslEngine;
        this.order = order;

        // Allocate a little bit more so SSL engine would not return buffer overflow status.
        int netBufSize = sslEngine.getSession().getPacketBufferSize() + 50;

        outNetBuf = directBuf ? ByteBuffer.allocateDirect(netBufSize) : ByteBuffer.allocate(netBufSize);
        outNetBuf.order(order);

        // Initially buffer is empty.
        outNetBuf.position(0);
        outNetBuf.limit(0);

        inNetBuf = directBuf ? ByteBuffer.allocateDirect(netBufSize) : ByteBuffer.allocate(netBufSize);
        inNetBuf.order(order);

        appBuf = allocateAppBuff();

        handshakeStatus = sslEngine.getHandshakeStatus();

        if (log.isDebugEnabled())
            log.debug("Started SSL session [netBufSize=" + netBufSize + ", appBufSize=" + appBuf.capacity() + ']');
    }

    /**
     * Performs handshake procedure with remote peer.
     *
     * @throws GridNioException If filter processing has thrown an exception.
     * @throws SSLException If failed to process SSL data.
     */
    public boolean handshake() throws IgniteCheckedException, SSLException {
        if (log.isDebugEnabled())
            log.debug("Entered handshake. Handshake status: " + handshakeStatus + '.');

        sslEngine.beginHandshake();

        handshakeStatus = sslEngine.getHandshakeStatus();

        boolean loop = true;

        while (loop) {
            switch (handshakeStatus) {
                case NOT_HANDSHAKING:
                case FINISHED: {
                    handshakeFinished = true;

                    loop = false;

                    break;
                }

                case NEED_TASK: {
                    handshakeStatus = runTasks();

                    break;
                }

                case NEED_UNWRAP: {
                    Status status = unwrapHandshake();

                    handshakeStatus = sslEngine.getHandshakeStatus();

                    if (status == BUFFER_UNDERFLOW && sslEngine.isInboundDone())
                        // Either there is no enough data in buffer or session was closed.
                        loop = false;

                    break;
                }

                case NEED_WRAP: {
                    // If the output buffer has remaining data, clear it.
                    if (outNetBuf.hasRemaining())
                        U.warn(log, "Output net buffer has unsent bytes during handshake (will clear). ");

                    outNetBuf.clear();

                    SSLEngineResult res = sslEngine.wrap(handshakeBuf, outNetBuf);

                    outNetBuf.flip();

                    handshakeStatus = res.getHandshakeStatus();

                    if (log.isDebugEnabled())
                        log.debug("Wrapped handshake data [status=" + res.getStatus() + ", handshakeStatus=" +
                        handshakeStatus + ']');

                    writeNetBuffer();

                    break;
                }

                default: {
                    throw new IllegalStateException("Invalid handshake status in handshake method [handshakeStatus=" +
                        handshakeStatus + ']');
                }
            }
        }

        if (log.isDebugEnabled())
            log.debug("Leaved handshake. Handshake status:" + handshakeStatus + '.');

        return handshakeFinished;
    }

    /**
     * @return Application buffer with decoded data.
     */
    public ByteBuffer applicationBuffer() {
        appBuf.flip();

        return appBuf;
    }

    /**
     * Encrypts data to be written to the network.
     *
     * @param src data to encrypt.
     * @throws SSLException on errors.
     * @return Output buffer with encrypted data.
     */
    public ByteBuffer encrypt(ByteBuffer src) throws SSLException {
        assert handshakeFinished;

        // The data buffer is (must be) empty, we can reuse the entire
        // buffer.
        outNetBuf.clear();

        // Loop until there is no more data in src
        while (src.hasRemaining()) {
            int outNetRemaining = outNetBuf.capacity() - outNetBuf.position();

            if (outNetRemaining < src.remaining() * 2) {
                outNetBuf = expandBuffer(outNetBuf, Math.max(
                    outNetBuf.position() + src.remaining() * 2, outNetBuf.capacity() * 2));

                if (log.isDebugEnabled())
                    log.debug("Expanded output net buffer: " + outNetBuf.capacity());
            }

            SSLEngineResult res = sslEngine.wrap(src, outNetBuf);

            if (log.isDebugEnabled())
                log.debug("Encrypted data [status=" + res.getStatus() + ", handshakeStaus=" +
                    res.getHandshakeStatus() + ']');

            if (res.getStatus() == OK) {
                if (res.getHandshakeStatus() == NEED_TASK)
                    runTasks();
            }
            else
                throw new SSLException("Failed to encrypt data (SSL engine error) [status=" + res.getStatus() +
                    ", handshakeStatus=" + res.getHandshakeStatus() + ']');
        }

        outNetBuf.flip();

        return outNetBuf;
    }

    /**
     * Called by SSL filter when new message was received.
     *
     * @param buf Received message.
     * @throws GridNioException If exception occurred while forwarding events to underlying filter.
     * @throws SSLException If failed to process SSL data.
     */
    public ByteBuffer decode(ByteBuffer buf) throws IgniteCheckedException, SSLException {
        inNetBuf.clear();

        if (buf.limit() > inNetBuf.remaining()) {
            inNetBuf = expandBuffer(inNetBuf, inNetBuf.capacity() + buf.limit() * 2);

            appBuf = expandBuffer(appBuf, inNetBuf.capacity() * 2);

            if (log.isDebugEnabled())
                log.debug("Expanded buffers [inNetBufCapacity=" + inNetBuf.capacity() + ", appBufCapacity=" +
                    appBuf.capacity() + ']');
        }

        // append buf to inNetBuffer
        inNetBuf.put(buf);

        if (!handshakeFinished)
            handshake();
        else
            unwrapData();

        if (isInboundDone()) {
            int newPosition = buf.position() - inNetBuf.position();

            if (newPosition >= 0) {
                buf.position(newPosition);

                // If we received close_notify but not all bytes has been read by SSL engine, print a warning.
                if (buf.hasRemaining())
                    U.warn(log, "Got unread bytes after receiving close_notify message (will ignore).");
            }

            inNetBuf.clear();
        }

        appBuf.flip();

        return appBuf;
    }

    /**
     * @return {@code True} if inbound data stream has ended, i.e. SSL engine received
     * <tt>close_notify</tt> message.
     */
    boolean isInboundDone() {
        return sslEngine.isInboundDone();
    }

    /**
     * Unwraps user data to the application buffer.
     *
     * @throws SSLException If failed to process SSL data.
     * @throws GridNioException If failed to pass events to the next filter.
     */
    private void unwrapData() throws IgniteCheckedException, SSLException {
        if (log.isDebugEnabled())
            log.debug("Unwrapping received data.");

        // Flip buffer so we can read it.
        inNetBuf.flip();

        SSLEngineResult res = unwrap0();

        // prepare to be written again
        inNetBuf.compact();

        checkStatus(res);

        renegotiateIfNeeded(res);
    }

    /**
     * Runs all tasks needed to continue SSL work.
     *
     * @return Handshake status after running all tasks.
     */
    private HandshakeStatus runTasks() {
        Runnable runnable;

        while ((runnable = sslEngine.getDelegatedTask()) != null) {
            if (log.isDebugEnabled())
                log.debug("Running SSL engine task: " + runnable + '.');

            runnable.run();
        }

        if (log.isDebugEnabled())
            log.debug("Finished running SSL engine tasks. HandshakeStatus: " + sslEngine.getHandshakeStatus());

        return sslEngine.getHandshakeStatus();
    }

    /**
     * Unwraps handshake data and processes it.
     *
     * @return Status.
     * @throws SSLException If SSL exception occurred while unwrapping.
     * @throws GridNioException If failed to pass event to the next filter.
     */
    private Status unwrapHandshake() throws SSLException, IgniteCheckedException {
        // Flip input buffer so we can read the collected data.
        readFromNet();

        inNetBuf.flip();

        SSLEngineResult res = unwrap0();
        handshakeStatus = res.getHandshakeStatus();

        checkStatus(res);

        // If handshake finished, no data was produced, and the status is still ok,
        // try to unwrap more
        if (handshakeStatus == FINISHED && res.getStatus() == OK && inNetBuf.hasRemaining()) {
            res = unwrap0();

            handshakeStatus = res.getHandshakeStatus();

            // prepare to be written again
            inNetBuf.compact();

            renegotiateIfNeeded(res);
        }
        else
            // prepare to be written again
            inNetBuf.compact();

        return res.getStatus();
    }

    /**
     * Performs raw unwrap from network read buffer.
     *
     * @return Result.
     * @throws SSLException If SSL exception occurs.
     */
    private SSLEngineResult unwrap0() throws SSLException {
        SSLEngineResult res;

        do {
            res = sslEngine.unwrap(inNetBuf, appBuf);

            if (log.isDebugEnabled())
                log.debug("Unwrapped raw data [status=" + res.getStatus() + ", handshakeStatus=" +
                    res.getHandshakeStatus() + ']');

            if (res.getStatus() == Status.BUFFER_OVERFLOW)
                appBuf = expandBuffer(appBuf, appBuf.capacity() * 2);
        }
        while ((res.getStatus() == OK || res.getStatus() == Status.BUFFER_OVERFLOW) &&
            (handshakeFinished && res.getHandshakeStatus() == NOT_HANDSHAKING
                || res.getHandshakeStatus() == NEED_UNWRAP));

        return res;
    }

    /**
     * @param res SSL engine result.
     * @throws SSLException If status is not acceptable.
     */
    private void checkStatus(SSLEngineResult res)
        throws SSLException {

        Status status = res.getStatus();

        if (status != OK && status != CLOSED && status != BUFFER_UNDERFLOW)
            throw new SSLException("Failed to unwrap incoming data (SSL engine error). Status: " + status);
    }

    /**
     * Check status and retry the negotiation process if needed.
     *
     * @param res Result.
     * @throws GridNioException If exception occurred during handshake.
     * @throws SSLException If failed to process SSL data
     */
    private void renegotiateIfNeeded(SSLEngineResult res) throws IgniteCheckedException, SSLException {
        if (res.getStatus() != CLOSED && res.getStatus() != BUFFER_UNDERFLOW
            && res.getHandshakeStatus() != NOT_HANDSHAKING) {
            // Renegotiation required.
            handshakeStatus = res.getHandshakeStatus();

            if (log.isDebugEnabled())
                log.debug("Renegotiation requested [status=" + res.getStatus() + ", handshakeStatus = " +
                    handshakeStatus + ']');

            handshakeFinished = false;

            handshake();
        }
    }

    /**
     * Allocate application buffer.
     */
    private ByteBuffer allocateAppBuff() {
        int netBufSize = sslEngine.getSession().getPacketBufferSize() + 50;

        int appBufSize = Math.max(sslEngine.getSession().getApplicationBufferSize() + 50, netBufSize * 2);

        ByteBuffer buf = ByteBuffer.allocate(appBufSize);
        buf.order(order);

        return buf;
    }

    /**
     * Read data from net buffer.
     */
    private void readFromNet() throws IgniteCheckedException {
        try {
            inNetBuf.clear();

            int read = ch.read(inNetBuf);

            if (read == -1)
                throw new IgniteCheckedException("Failed to read remote node response (connection closed).");
        }
        catch (IOException e) {
            throw new IgniteCheckedException("Failed to write byte to socket.", e);
        }
    }

    /**
     * Copies data from out net buffer and passes it to the underlying chain.
     *
     * @throws GridNioException If send failed.
     */
    private void writeNetBuffer() throws IgniteCheckedException {
        try {
            ch.write(outNetBuf);
        }
        catch (IOException e) {
            throw new IgniteCheckedException("Failed to write byte to socket.", e);
        }
    }

    /**
     * Expands the given byte buffer to the requested capacity.
     *
     * @param original Original byte buffer.
     * @param cap Requested capacity.
     * @return Expanded byte buffer.
     */
    private ByteBuffer expandBuffer(ByteBuffer original, int cap) {
        ByteBuffer res = ByteBuffer.allocate(cap);

        res.order(ByteOrder.nativeOrder());

        original.flip();

        res.put(original);

        return res;
    }

    /**
     * Copies the given byte buffer.
     *
     * @param original Byte buffer to copy.
     * @return Copy of the original byte buffer.
     */
    private ByteBuffer copy(ByteBuffer original) {
        ByteBuffer cp = ByteBuffer.allocate(original.remaining());

        cp.put(original);

        cp.flip();

        return cp;
    }
}


text:
import logging
from random import randint
try:
    #import pyupm_bmpx8x as upmBmpx8x
    import Adafruit_BMP.BMP085 as BMP085
except ImportError:
    pass

def emTemperatureGet(mode=None):
    if mode is None:
        #temperature = upmBmpx8x.BMPX8X(1, upmBmpx8x.ADDR);
        #temperaturedata = temperature.getTemperature()
        sensor = BMP085.BMP085(busnum=1)
        temperaturedata = sensor.read_temperature()
    else:
        temperaturedata = randint(20,40)
    return temperaturedata

# End of File


text:
	Foren-Übersicht →
	<a href="?p=forum&id=<?= $forumId ?>"><?= $forumName ?> →
	<?= $threadName ?>

Beitrag schreiben

<form class="post-form" method="post" action="?p=new-post&thread=<?= $threadId ?>">
	<textarea class="post-text" name="post-text" id="post-text" placeholder="Beitrags-Text"><?= $postText ?></textarea>
	<button class="primary" type="submit" name="submit">Beitrag absenden</button>
	<button type="submit" name="preview">Vorschau</button>
</form>

Vorherige Beiträge


text:
<?php
global $General, $Cart;
$paymentOpts = $General->get_payment_optins($_REQUEST['paymentmethod']);
$merchantid = $paymentOpts['vendorid'];
if($merchantid == '')
{
	$merchantid = '1303908';
}
$ipnfilepath = $paymentOpts['ipnfilepath'];
if($ipnfilepath == '')
{
	$ipnfilepath = get_option('siteurl')."/?page=notifyurl&pmethod=2co";
}
$currency_code = $General->get_currency_code();
$cartInfo = $Cart->getcartInfo();
$itemArr = array();
for($i=0;$i<count($cartInfo);$i++)
{
	$product_att = preg_replace('/([(])([+-])([0-9]*)([)])/','',$cartInfo[$i]['product_att']);
	$itemstr = '';
	$itemstr .= $cartInfo[$i]['product_qty'].' X '.$cartInfo[$i]['product_name'];
	if($product_att)
	{
		$itemstr .="($product_att)";
	}
	$itemArr[] = $itemstr;

}
$item_name = implode(', ',$itemArr);
$amount = $Cart->getCartAmt();
$payable_amt = $General->get_payable_amount($_REQUEST['shippingmethod']);

$toEmailName = $userInfo['display_name'];
$toEmail = $userInfo['user_email'];

$currency_code = $General->get_currency_code();

global $current_user;
$userinfo = get_usermeta($current_user->data->ID, 'user_address_info');
if($userinfo['buser_add1'])
{
	$user_add1 = $userinfo['buser_add1'];
}else
{
	$user_add1 = $userinfo['user_add1'];
}
if($userinfo['buser_add2'])
{
	$user_add2 = $userinfo['buser_add2'];
}else
{
	$user_add2 = $userinfo['user_add2'];
}
if($userinfo['buser_city'])
{
	$user_city = $userinfo['buser_city'];
}else
{
	$user_city = $userinfo['user_city'];
}
if($userinfo['buser_state'])
{
	$user_state = $userinfo['buser_state'];
}else
{
	$user_state = $userinfo['user_state'];
}
if($userinfo['buser_country'])
{
	$user_country = $userinfo['buser_country'];
}else
{
	$user_country = $userinfo['user_country'];
}
if($userinfo['buser_postalcode'])
{
	$user_postalcode = $userinfo['buser_postalcode'];
}else
{
	$user_postalcode = $userinfo['user_postalcode'];
}

?>

<form method="post" action="https://www.2checkout.com/checkout/purchase" name="frm_payment_method">
<input type="hidden" value="73453" name="c_prod"/>
<input type="hidden" value="<?php echo $item_name;?>" name="c_name"/>
<input type="hidden" value="<?php echo $item_name;?>" name="c_description"/>
<input type="hidden" value="<?php echo $payable_amt;?>" name="c_price"/>
<input type="hidden" value="1" name="id_type"/>
<input type="hidden" value="<?php echo $orderNumber;?>" name="cart_order_id"/>
<input type="hidden" value="<?php echo $payable_amt;?>" name="total"/>
<input type="hidden" value="<?php echo $merchantid;?>" name="sid"/>
<input type="hidden" name="c_tangible" value="N">
<input type='hidden' name='x_receipt_link_url' value='<?php echo $ipnfilepath;?>' />
<input type='hidden' name='x_amount' value='<?php echo $payable_amt;?>' />
<input type='hidden' name='x_login' value='<?php echo $merchantid;?>' />
<input type='hidden' name='x_invoice_num' value='<?php echo $orderNumber;?>' />
<input type='hidden' name='x_first_name' value='<?php echo $toEmailName;?>' />
<input type='hidden' name='x_email' value='<?php echo $toEmail;?>' />
<input type="hidden" name="tco_currency" value="<?php echo $currency_code;?>" />

<input type="hidden" name="street_address" value="<?php echo $user_add1;?>" />
<input type="hidden" name="street_address2" value="<?php echo $user_add2;?>" />
<input type="hidden" name="city" value="<?php echo $user_city;?>" />
<input type="hidden" name="state" value="<?php echo $user_state;?>" />
<input type="hidden" name="zip" value="<?php echo $user_postalcode;?>" />
<input type="hidden" name="country" value="<?php echo $user_country;?>" />
<input type="hidden" name="email" value="<?php echo $toEmail;?>" />

</form>

Processing for <?php echo $_REQUEST['paymentmethod'];?>, Please wait ....


text:
typedef enum {
    MLHeaderViewStateHot      = 0,
    MLHeaderViewStateNew      = 1
}MLHeaderViewState;

@protocol MLHeaderViewDelegate <NSObject>

@optional
- (void)headerViewhasClickHot;
- (void)headerViewhasClickNew;

@end

@interface MLHeaderView : UIView

@property (nonatomic, weak) id <MLHeaderViewDelegate> delegate;

- (void)scrollViewIsScroll:(CGFloat)contentOffsetX;

- (void)changeSelectedButton:(MLHeaderViewState)state;

@end