3
* ====================================================================
4
* Copyright (c) 2003 CollabNet. All rights reserved.
6
* This software is licensed as described in the file COPYING, which
7
* you should have received as part of this distribution. The terms
8
* are also available at http://subversion.tigris.org/license-1.html.
9
* If newer versions of this license are posted there, you may use a
10
* newer version instead, at your option.
12
* This software consists of voluntary contributions made by many
13
* individuals. For exact contribution history, see the revision
14
* history and logs, available at http://subversion.tigris.org/.
15
* ====================================================================
18
* @file JNIStringHolder.cpp
19
* @brief Implementation of the class JNIStringHolder
22
#include "JNIStringHolder.h"
24
//////////////////////////////////////////////////////////////////////
25
// Construction/Destruction
26
//////////////////////////////////////////////////////////////////////
28
JNIStringHolder::JNIStringHolder(jstring jtext)
36
m_str = JNIUtil::getEnv()->GetStringUTFChars(jtext, NULL);
38
m_env = JNIUtil::getEnv();
41
JNIStringHolder::~JNIStringHolder()
44
m_env->ReleaseStringUTFChars(m_jtext, m_str);