本文整理汇总了C#中javax类的典型用法代码示例。如果您正苦于以下问题:C# javax类的具体用法?C# javax怎么用?C# javax使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
javax类属于命名空间,在下文中一共展示了javax类的19个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: restoreComponentState
protected override void restoreComponentState (FacesContext facesContext,
javax.faces.component.UIViewRoot uiViewRoot,
String renderKitId) {
Trace.WriteLine ("Entering restoreComponentState");
Object serializedComponentStates;
if (isSavingStateInClient (facesContext)) {
serializedComponentStates = GetStateFromClient (facesContext, uiViewRoot.getViewId(), renderKitId);
}
else {
HttpSession session = (HttpSession) facesContext.getExternalContext ().getSession (false);
if (session == null)
serializedComponentStates = null;
else {
string key = ((IExtendedViewHandler) facesContext.getApplication ().getViewHandler ()).EncodeNamespace (facesContext, VIEWSTATE);
SerializedView serializedView = session.getAttribute (key) as SerializedView;
if (serializedView == null)
serializedComponentStates = null;
else
serializedComponentStates = serializedView.getState ();
}
}
((UIComponent) uiViewRoot.getChildren ().get (0)).processRestoreState (facesContext, serializedComponentStates);
Trace.WriteLine ("Exiting restoreComponentState");
}
开发者ID:nlhepler,项目名称:mono,代码行数:27,代码来源:ServletFacesStateManager.cs
示例2: gluPerspective
public static void gluPerspective(javax.microedition.khronos.opengles.GL10 arg0, float arg1, float arg2, float arg3, float arg4)
{
global::MonoJavaBridge.JNIEnv @__env = global::MonoJavaBridge.JNIEnv.ThreadEnv;
if (global::android.opengl.GLU._m3.native == global::System.IntPtr.Zero)
global::android.opengl.GLU._m3 = @__env.GetStaticMethodIDNoThrow(global::android.opengl.GLU.staticClass, "gluPerspective", "(Ljavax/microedition/khronos/opengles/GL10;FFFF)V");
@__env.CallStaticVoidMethod(android.opengl.GLU.staticClass, global::android.opengl.GLU._m3, global::MonoJavaBridge.JavaBridge.ConvertToValue(arg0), global::MonoJavaBridge.JavaBridge.ConvertToValue(arg1), global::MonoJavaBridge.JavaBridge.ConvertToValue(arg2), global::MonoJavaBridge.JavaBridge.ConvertToValue(arg3), global::MonoJavaBridge.JavaBridge.ConvertToValue(arg4));
}
开发者ID:JeroMiya,项目名称:androidmono,代码行数:7,代码来源:GLU.cs
示例3: wrap
public static global::javax.microedition.khronos.opengles.GL wrap(javax.microedition.khronos.opengles.GL arg0, int arg1, java.io.Writer arg2)
{
global::MonoJavaBridge.JNIEnv @__env = global::MonoJavaBridge.JNIEnv.ThreadEnv;
if (global::android.opengl.GLDebugHelper._m0.native == global::System.IntPtr.Zero)
global::android.opengl.GLDebugHelper._m0 = @__env.GetStaticMethodIDNoThrow(global::android.opengl.GLDebugHelper.staticClass, "wrap", "(Ljavax/microedition/khronos/opengles/GL;ILjava/io/Writer;)Ljavax/microedition/khronos/opengles/GL;");
return global::MonoJavaBridge.JavaBridge.WrapIJavaObject<global::javax.microedition.khronos.opengles.GL>(@__env.CallStaticObjectMethod(android.opengl.GLDebugHelper.staticClass, global::android.opengl.GLDebugHelper._m0, global::MonoJavaBridge.JavaBridge.ConvertToValue(arg0), global::MonoJavaBridge.JavaBridge.ConvertToValue(arg1), global::MonoJavaBridge.JavaBridge.ConvertToValue(arg2))) as javax.microedition.khronos.opengles.GL;
}
开发者ID:JeroMiya,项目名称:androidmono,代码行数:7,代码来源:GLDebugHelper.cs
示例4:
void android.opengl.GLSurfaceView.EGLContextFactory.destroyContext(javax.microedition.khronos.egl.EGL10 arg0, javax.microedition.khronos.egl.EGLDisplay arg1, javax.microedition.khronos.egl.EGLContext arg2)
{
global::MonoJavaBridge.JNIEnv @__env = global::MonoJavaBridge.JNIEnv.ThreadEnv;
if (!IsClrObject)
@__env.CallVoidMethod(this.JvmHandle, global::android.opengl.GLSurfaceView.EGLContextFactory_._destroyContext6060, global::MonoJavaBridge.JavaBridge.ConvertToValue(arg0), global::MonoJavaBridge.JavaBridge.ConvertToValue(arg1), global::MonoJavaBridge.JavaBridge.ConvertToValue(arg2));
else
@__env.CallNonVirtualVoidMethod(this.JvmHandle, global::android.opengl.GLSurfaceView.EGLContextFactory_.staticClass, global::android.opengl.GLSurfaceView.EGLContextFactory_._destroyContext6060, global::MonoJavaBridge.JavaBridge.ConvertToValue(arg0), global::MonoJavaBridge.JavaBridge.ConvertToValue(arg1), global::MonoJavaBridge.JavaBridge.ConvertToValue(arg2));
}
开发者ID:nagyist,项目名称:androidmono,代码行数:8,代码来源:GLSurfaceView.cs
示例5:
global::javax.microedition.khronos.egl.EGLSurface javax.microedition.khronos.egl.EGL10.eglCreatePixmapSurface(javax.microedition.khronos.egl.EGLDisplay arg0, javax.microedition.khronos.egl.EGLConfig arg1, java.lang.Object arg2, int[] arg3)
{
global::MonoJavaBridge.JNIEnv @__env = global::MonoJavaBridge.JNIEnv.ThreadEnv;
if (!IsClrObject)
return global::MonoJavaBridge.JavaBridge.WrapJavaObject(@__env.CallObjectMethod(this.JvmHandle, global::javax.microedition.khronos.egl.EGL10_._eglCreatePixmapSurface15800, global::MonoJavaBridge.JavaBridge.ConvertToValue(arg0), global::MonoJavaBridge.JavaBridge.ConvertToValue(arg1), global::MonoJavaBridge.JavaBridge.ConvertToValue(arg2), global::MonoJavaBridge.JavaBridge.ConvertToValue(arg3))) as javax.microedition.khronos.egl.EGLSurface;
else
return global::MonoJavaBridge.JavaBridge.WrapJavaObject(@__env.CallNonVirtualObjectMethod(this.JvmHandle, global::javax.microedition.khronos.egl.EGL10_.staticClass, global::javax.microedition.khronos.egl.EGL10_._eglCreatePixmapSurface15800, global::MonoJavaBridge.JavaBridge.ConvertToValue(arg0), global::MonoJavaBridge.JavaBridge.ConvertToValue(arg1), global::MonoJavaBridge.JavaBridge.ConvertToValue(arg2), global::MonoJavaBridge.JavaBridge.ConvertToValue(arg3))) as javax.microedition.khronos.egl.EGLSurface;
}
开发者ID:nagyist,项目名称:androidmono,代码行数:8,代码来源:EGL10.cs
示例6:
bool javax.net.ssl.HostnameVerifier.verify(java.lang.String arg0, javax.net.ssl.SSLSession arg1)
{
global::MonoJavaBridge.JNIEnv @__env = global::MonoJavaBridge.JNIEnv.ThreadEnv;
if (!IsClrObject)
return @__env.CallBooleanMethod(this.JvmHandle, global::org.apache.http.conn.ssl.X509HostnameVerifier_._verify16438, global::MonoJavaBridge.JavaBridge.ConvertToValue(arg0), global::MonoJavaBridge.JavaBridge.ConvertToValue(arg1));
else
return @__env.CallNonVirtualBooleanMethod(this.JvmHandle, global::org.apache.http.conn.ssl.X509HostnameVerifier_.staticClass, global::org.apache.http.conn.ssl.X509HostnameVerifier_._verify16438, global::MonoJavaBridge.JavaBridge.ConvertToValue(arg0), global::MonoJavaBridge.JavaBridge.ConvertToValue(arg1));
}
开发者ID:nagyist,项目名称:androidmono,代码行数:8,代码来源:X509HostnameVerifier.cs
示例7: HandshakeCompletedEvent
public HandshakeCompletedEvent(javax.net.ssl.SSLSocket arg0, javax.net.ssl.SSLSession arg1)
: base(global::MonoJavaBridge.JNIEnv.ThreadEnv)
{
global::MonoJavaBridge.JNIEnv @__env = global::MonoJavaBridge.JNIEnv.ThreadEnv;
if (global::javax.net.ssl.HandshakeCompletedEvent._m8.native == global::System.IntPtr.Zero)
global::javax.net.ssl.HandshakeCompletedEvent._m8 = @__env.GetMethodIDNoThrow(global::javax.net.ssl.HandshakeCompletedEvent.staticClass, "<init>", "(Ljavax/net/ssl/SSLSocket;Ljavax/net/ssl/SSLSession;)V");
global::MonoJavaBridge.JniLocalHandle handle = @__env.NewObject(javax.net.ssl.HandshakeCompletedEvent.staticClass, global::javax.net.ssl.HandshakeCompletedEvent._m8, global::MonoJavaBridge.JavaBridge.ConvertToValue(arg0), global::MonoJavaBridge.JavaBridge.ConvertToValue(arg1));
Init(@__env, handle);
}
开发者ID:JeroMiya,项目名称:androidmono,代码行数:9,代码来源:HandshakeCompletedEvent.cs
示例8: TrustAnchor
public TrustAnchor(javax.security.auth.x500.X500Principal arg0, java.security.PublicKey arg1, byte[] arg2)
: base(global::MonoJavaBridge.JNIEnv.ThreadEnv)
{
global::MonoJavaBridge.JNIEnv @__env = global::MonoJavaBridge.JNIEnv.ThreadEnv;
if (global::java.security.cert.TrustAnchor._m7.native == global::System.IntPtr.Zero)
global::java.security.cert.TrustAnchor._m7 = @__env.GetMethodIDNoThrow(global::java.security.cert.TrustAnchor.staticClass, "<init>", "(Ljavax/security/auth/x500/X500Principal;Ljava/security/PublicKey;[B)V");
global::MonoJavaBridge.JniLocalHandle handle = @__env.NewObject(java.security.cert.TrustAnchor.staticClass, global::java.security.cert.TrustAnchor._m7, global::MonoJavaBridge.JavaBridge.ConvertToValue(arg0), global::MonoJavaBridge.JavaBridge.ConvertToValue(arg1), global::MonoJavaBridge.JavaBridge.ConvertToValue(arg2));
Init(@__env, handle);
}
开发者ID:JeroMiya,项目名称:androidmono,代码行数:9,代码来源:TrustAnchor.cs
示例9: getAudioFileTypes
/// <summary>
/// Obtains the file types that this audio file writer can write from the
/// audio input stream specified.
/// </summary>
/// <remarks>
/// Obtains the file types that this audio file writer can write from the
/// audio input stream specified.
/// </remarks>
/// <param name="stream">
/// - the audio input stream for which audio file type support
/// is queried.
/// </param>
/// <returns>
/// array of file types. If no file types are supported, an array of
/// length 0 is returned.
/// </returns>
public override javax.sound.sampled.AudioFileFormat.Type[] getAudioFileTypes(javax.sound.sampled.AudioInputStream
stream)
{
if (stream.getFormat().getEncoding() is org.xiph.speex.spi.SpeexEncoding)
{
return SPEEX_FORMAT;
}
else
{
return NO_FORMAT;
}
}
开发者ID:sangnvus,项目名称:technical-docs,代码行数:28,代码来源:SpeexAudioFileWriter.cs
示例10: getAudioInputStream
/// <summary>
/// Obtains an audio input stream with the specified encoding from the given
/// audio input stream.
/// </summary>
/// <remarks>
/// Obtains an audio input stream with the specified encoding from the given
/// audio input stream.
/// </remarks>
/// <param name="targetEncoding">- desired encoding of the stream after processing.</param>
/// <param name="sourceStream">- stream from which data to be processed should be read.
/// </param>
/// <returns>
/// stream from which processed data with the specified target
/// encoding may be read.
/// </returns>
/// <exception>
/// IllegalArgumentException
/// - if the format combination supplied
/// is not supported.
/// </exception>
public override javax.sound.sampled.AudioInputStream getAudioInputStream(javax.sound.sampled.AudioFormat.Encoding
targetEncoding, javax.sound.sampled.AudioInputStream sourceStream)
{
if (isConversionSupported(targetEncoding, sourceStream.getFormat()))
{
javax.sound.sampled.AudioFormat[] formats = getTargetFormats(targetEncoding, sourceStream
.getFormat());
if (formats != null && formats.Length > 0)
{
javax.sound.sampled.AudioFormat sourceFormat = sourceStream.getFormat();
javax.sound.sampled.AudioFormat targetFormat = formats[0];
if (sourceFormat.Equals(targetFormat))
{
return sourceStream;
}
else
{
if (sourceFormat.getEncoding() is org.xiph.speex.spi.SpeexEncoding && targetFormat
.getEncoding().Equals(javax.sound.sampled.AudioFormat.Encoding.PCM_SIGNED))
{
return new org.xiph.speex.spi.Speex2PcmAudioInputStream(sourceStream, targetFormat
, -1);
}
else
{
if (sourceFormat.getEncoding().Equals(javax.sound.sampled.AudioFormat.Encoding.PCM_SIGNED
) && targetFormat.getEncoding() is org.xiph.speex.spi.SpeexEncoding)
{
return new org.xiph.speex.spi.Pcm2SpeexAudioInputStream(sourceStream, targetFormat
, -1);
}
else
{
throw new System.ArgumentException("unable to convert " + sourceFormat.ToString()
+ " to " + targetFormat.ToString());
}
}
}
}
else
{
throw new System.ArgumentException("target format not found");
}
}
else
{
throw new System.ArgumentException("conversion not supported");
}
}
开发者ID:sangnvus,项目名称:technical-docs,代码行数:69,代码来源:SpeexFormatConvertionProvider.cs
示例11: StartEncryption
public bool StartEncryption(string username, string sessionID, byte[] token, string serverIDhash, java.security.PublicKey serverKey, javax.crypto.SecretKey secretKey)
{
Console.ForegroundColor = ConsoleColor.DarkGray;
ConsoleIO.WriteLine("Crypto keys & hash generated.");
Console.ForegroundColor = ConsoleColor.Gray;
if (serverIDhash != "-")
{
Console.WriteLine("Checking Session...");
if (!SessionCheck(username, sessionID, new java.math.BigInteger(Crypto.getServerHash(serverIDhash, serverKey, secretKey)).toString(16)))
{
return false;
}
}
//Encrypt the data
byte[] key_enc = Crypto.Encrypt(serverKey, secretKey.getEncoded());
byte[] token_enc = Crypto.Encrypt(serverKey, token);
byte[] keylen = BitConverter.GetBytes((short)key_enc.Length);
byte[] tokenlen = BitConverter.GetBytes((short)token_enc.Length);
Array.Reverse(keylen);
Array.Reverse(tokenlen);
//Building the packet
byte[] data = new byte[5 + (short)key_enc.Length + (short)token_enc.Length];
data[0] = 0xFC;
keylen.CopyTo(data, 1);
key_enc.CopyTo(data, 3);
tokenlen.CopyTo(data, 3 + (short)key_enc.Length);
token_enc.CopyTo(data, 5 + (short)key_enc.Length);
//Send it back
Send(data);
//Getting the next packet
byte[] pid = new byte[1];
Receive(pid, 0, 1, SocketFlags.None);
if (pid[0] == 0xFC)
{
readData(4);
setEncryptedClient(Crypto.SwitchToAesMode(c.GetStream(), secretKey));
return true;
}
else return false;
}
开发者ID:justcool393,项目名称:Minecraft-Console-Client,代码行数:46,代码来源:MinecraftCom.cs
示例12:
global::java.lang.String javax.microedition.khronos.egl.EGL10.eglQueryString(javax.microedition.khronos.egl.EGLDisplay arg0, int arg1)
{
return global::MonoJavaBridge.JavaBridge.CallSealedClassObjectMethod<java.lang.String>(this, global::javax.microedition.khronos.egl.EGL10_.staticClass, "eglQueryString", "(Ljavax/microedition/khronos/egl/EGLDisplay;I)Ljava/lang/String;", ref global::javax.microedition.khronos.egl.EGL10_._m18, global::MonoJavaBridge.JavaBridge.ConvertToValue(arg0), global::MonoJavaBridge.JavaBridge.ConvertToValue(arg1)) as java.lang.String;
}
开发者ID:JeroMiya,项目名称:androidmono,代码行数:4,代码来源:EGL10.cs
示例13: setViewRoot
public override void setViewRoot (javax.faces.component.UIViewRoot __p1) {
_facesContex.setViewRoot (__p1);
}
开发者ID:KonajuGames,项目名称:SharpLang,代码行数:3,代码来源:AspNetFacesContext.cs
示例14: addMessage
public override void addMessage (string __p1, javax.faces.application.FacesMessage __p2) {
_facesContex.addMessage (__p1, __p2);
}
开发者ID:KonajuGames,项目名称:SharpLang,代码行数:3,代码来源:AspNetFacesContext.cs
示例15: HandshakeCompletedEvent
public HandshakeCompletedEvent(javax.net.ssl.SSLSocket arg0, javax.net.ssl.SSLSession arg1) : base(global::MonoJavaBridge.JNIEnv.ThreadEnv)
{
global::MonoJavaBridge.JNIEnv @__env = global::MonoJavaBridge.JNIEnv.ThreadEnv;
global::MonoJavaBridge.JniLocalHandle handle = @__env.NewObject(javax.net.ssl.HandshakeCompletedEvent.staticClass, global::javax.net.ssl.HandshakeCompletedEvent._HandshakeCompletedEvent15969, global::MonoJavaBridge.JavaBridge.ConvertToValue(arg0), global::MonoJavaBridge.JavaBridge.ConvertToValue(arg1));
Init(@__env, handle);
}
开发者ID:nagyist,项目名称:androidmono,代码行数:6,代码来源:HandshakeCompletedEvent.cs
示例16: createContext
internal virtual javax.microedition.khronos.egl.EGLContext createContext(javax.microedition.khronos.egl.EGL10
egl, javax.microedition.khronos.egl.EGLDisplay eglDisplay, javax.microedition.khronos.egl.EGLConfig
eglConfig)
{
throw new System.NotImplementedException();
}
开发者ID:hakeemsm,项目名称:XobotOS,代码行数:6,代码来源:HardwareRenderer.cs
示例17: printConfig
private void printConfig(javax.microedition.khronos.egl.EGLConfig config)
{
throw new System.NotImplementedException();
}
开发者ID:hakeemsm,项目名称:XobotOS,代码行数:4,代码来源:HardwareRenderer.cs
示例18:
bool javax.net.ssl.HostnameVerifier.verify(java.lang.String arg0, javax.net.ssl.SSLSession arg1)
{
return global::MonoJavaBridge.JavaBridge.CallBooleanMethod(this, global::javax.net.ssl.HostnameVerifier_.staticClass, "verify", "(Ljava/lang/String;Ljavax/net/ssl/SSLSession;)Z", ref global::javax.net.ssl.HostnameVerifier_._m0, global::MonoJavaBridge.JavaBridge.ConvertToValue(arg0), global::MonoJavaBridge.JavaBridge.ConvertToValue(arg1));
}
开发者ID:JeroMiya,项目名称:androidmono,代码行数:4,代码来源:HostnameVerifier.cs
示例19: createLiteral
public dotSesame.Literal createLiteral(javax.xml.datatype.XMLGregorianCalendar xmlgc)
{
return this._mapping.ValueFactory.createLiteral(xmlgc);
}
开发者ID:jbunzel,项目名称:MvcRQ_git,代码行数:4,代码来源:DotNetRdfValueFactory.cs
注:本文中的javax类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论