00001 /*! 00002 * @file java_lang_String.c 00003 * 00004 * @brief Sample subset of @c @b java.lang.String native 00005 * methods 00006 * 00007 * This file contains a stub sample implementation this class. 00008 * 00009 * The full implementation of this source file should contain each and 00010 * every native method that is declared by the implmentation and it 00011 * should be stored in a shared archive along with the other classes 00012 * of this Java package's native methods. 00013 * 00014 * In this stub sample, the parameter <b><code>(JNIEnv *)</code></b> 00015 * is @e not considered. Obviously, this is required for proper 00016 * linkage in a real implementation. 00017 * 00018 * 00019 * @section Control 00020 * 00021 * \$URL: https://svn.apache.org/path/name/java_lang_String.c $ \$Id: java_lang_String.c 0 09/28/2005 dlydick $ 00022 * 00023 * Copyright 2005 The Apache Software Foundation 00024 * or its licensors, as applicable. 00025 * 00026 * Licensed under the Apache License, Version 2.0 ("the License"); 00027 * you may not use this file except in compliance with the License. 00028 * You may obtain a copy of the License at 00029 * 00030 * http://www.apache.org/licenses/LICENSE-2.0 00031 * 00032 * Unless required by applicable law or agreed to in writing, 00033 * software distributed under the License is distributed on an 00034 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, 00035 * either express or implied. 00036 * 00037 * See the License for the specific language governing permissions 00038 * and limitations under the License. 00039 * 00040 * @version \$LastChangedRevision: 0 $ 00041 * 00042 * @date \$LastChangedDate: 09/28/2005 $ 00043 * 00044 * @author \$LastChangedBy: dlydick $ 00045 * Original code contributed by Daniel Lydick on 09/28/2005. 00046 * 00047 * @section Reference 00048 * 00049 */ 00050 00051 #include <jni.h> 00052 #include "java_lang_String.h" 00053 #include "jlString.h" 00054 00055 #ifdef __cplusplus 00056 extern "C" { 00057 #endif 00058 00059 /*! 00060 * @brief Native implementation 00061 * of @c @b java.lang.String.registerNatives() 00062 * 00063 * @verbatim 00064 Class: java_lang_String 00065 Method: registerNatives 00066 Signature: ()V 00067 @endverbatim 00068 * 00069 */ 00070 JNIEXPORT void JNICALL 00071 Java_java_lang_String_registerNatives(JNIEnv *env, jclass jc) 00072 { 00073 /* Contents to be determined */ 00074 } 00075 00076 00077 /*! 00078 * @brief Native implementation 00079 * of @c @b java.lang.String.registerNatives() 00080 * 00081 * @verbatim 00082 Class: java_lang_String 00083 Method: unregisterNatives 00084 Signature: ()V 00085 @endverbatim 00086 * 00087 */ 00088 JNIEXPORT void JNICALL 00089 Java_java_lang_String_unregisterNatives(JNIEnv *env, jclass jc) 00090 { 00091 /* Contents to be determined */ 00092 } 00093 00094 00095 /*! 00096 * @brief Native implementation 00097 * of @c @b java.lang.String.intern() 00098 * 00099 * @verbatim 00100 Class: java_lang_String 00101 Method: intern 00102 Signature: ()Ljava/lang/String; 00103 @endverbatim 00104 * 00105 */ 00106 JNIEXPORT jstring JNICALL 00107 Java_java_lang_String_intern(JNIEnv *env, jobject jo) 00108 { 00109 return(jlString_intern(jo)); 00110 } 00111 00112 00113 #ifdef __cplusplus 00114 } 00115 #endif 00116 00117 00118 /* EOF */ 00119