Java 类org.omg.CORBA.Environment 实例源码

项目:Rey-MusicPlayer    文件:TagEditor.java   
/**
 * If the file belogns to the external storage we won'e be able to edit it,
 * so the work around is to copy the file to internal storage edit it and cut and
 * paste it back to its place this the the solution I can think of which I took
 * from shuttle music Player here. If it belogs to internal storage edit it there only.
 */
private void moveFile(File file, File dir) throws IOException {
    dir = Environment.getExternalStorageDirectory().getPath();
    File newFile = new File(dir, file.getName());
    FileChannel outputChannel = null;
    FileChannel inputChannel = null;
    try {
        outputChannel = new FileOutputStream(newFile).getChannel();
        inputChannel = new FileInputStream(file).getChannel();
        inputChannel.transferTo(0, inputChannel.size(), outputChannel);
        inputChannel.close();
        file.delete();
    } finally {
        if (inputChannel != null) inputChannel.close();
        if (outputChannel != null) outputChannel.close();
    }

}
项目:OpenJSharp    文件:RequestImpl.java   
public Environment env()
{
    return _env;
}
项目:OpenJSharp    文件:ORBImpl.java   
/**
 * Create an Environment
 *
 * @result          Environment created
 */
public synchronized org.omg.CORBA.Environment create_environment()
{
    checkShutdownState();
    return new EnvironmentImpl();
}
项目:OpenJSharp    文件:ORBSingleton.java   
public org.omg.CORBA.Environment create_environment()
{
    return new EnvironmentImpl();
}
项目:openjdk-jdk10    文件:RequestImpl.java   
public Environment env()
{
    return _env;
}
项目:openjdk-jdk10    文件:ORBImpl.java   
/**
 * Create an Environment
 *
 * @return          Environment created
 */
public synchronized org.omg.CORBA.Environment create_environment()
{
    checkShutdownState();
    return new EnvironmentImpl();
}
项目:openjdk-jdk10    文件:ORBSingleton.java   
public org.omg.CORBA.Environment create_environment()
{
    return new EnvironmentImpl();
}
项目:openjdk-jdk10    文件:TestSingletonOrbImpl.java   
@Override
public Environment create_environment() {
    return null;
}
项目:openjdk-jdk10    文件:TestOrbImpl.java   
@Override
public Environment create_environment() {
    return null;
}
项目:openjdk9    文件:RequestImpl.java   
public Environment env()
{
    return _env;
}
项目:openjdk9    文件:ORBImpl.java   
/**
 * Create an Environment
 *
 * @return          Environment created
 */
public synchronized org.omg.CORBA.Environment create_environment()
{
    checkShutdownState();
    return new EnvironmentImpl();
}
项目:openjdk9    文件:ORBSingleton.java   
public org.omg.CORBA.Environment create_environment()
{
    return new EnvironmentImpl();
}
项目:lookaside_java-1.8.0-openjdk    文件:RequestImpl.java   
public Environment env()
{
    return _env;
}
项目:lookaside_java-1.8.0-openjdk    文件:ORBImpl.java   
/**
 * Create an Environment
 *
 * @result          Environment created
 */
public synchronized org.omg.CORBA.Environment create_environment()
{
    checkShutdownState();
    return new EnvironmentImpl();
}
项目:lookaside_java-1.8.0-openjdk    文件:ORBSingleton.java   
public org.omg.CORBA.Environment create_environment()
{
    return new EnvironmentImpl();
}
项目:jdk8u_corba    文件:RequestImpl.java   
public Environment env()
{
    return _env;
}
项目:jdk8u_corba    文件:ORBImpl.java   
/**
 * Create an Environment
 *
 * @result          Environment created
 */
public synchronized org.omg.CORBA.Environment create_environment()
{
    checkShutdownState();
    return new EnvironmentImpl();
}
项目:jdk8u_corba    文件:ORBSingleton.java   
public org.omg.CORBA.Environment create_environment()
{
    return new EnvironmentImpl();
}
项目:javify    文件:OrbRestricted.java   
/** {@inheritDoc} */
public Environment create_environment()
{
  return new gnuEnvironment();
}
项目:javify    文件:gnuRequest.java   
/** {@inheritDoc} */
public Environment env()
{
  return m_environment;
}
项目:jvm-stm    文件:OrbRestricted.java   
/** {@inheritDoc} */
public Environment create_environment()
{
  return new gnuEnvironment();
}
项目:jvm-stm    文件:gnuRequest.java   
/** {@inheritDoc} */
public Environment env()
{
  return m_environment;
}
项目:infobip-open-jdk-8    文件:RequestImpl.java   
public Environment env()
{
    return _env;
}
项目:infobip-open-jdk-8    文件:ORBImpl.java   
/**
 * Create an Environment
 *
 * @result          Environment created
 */
public synchronized org.omg.CORBA.Environment create_environment()
{
    checkShutdownState();
    return new EnvironmentImpl();
}
项目:infobip-open-jdk-8    文件:ORBSingleton.java   
public org.omg.CORBA.Environment create_environment()
{
    return new EnvironmentImpl();
}
项目:openjdk-source-code-learn    文件:RequestImpl.java   
public Environment env()
{
    return _env;
}
项目:openjdk-source-code-learn    文件:ORBImpl.java   
/**
 * Create an Environment
 *
 * @result          Environment created
 */
public synchronized org.omg.CORBA.Environment create_environment()
{
    checkShutdownState();
    return new EnvironmentImpl();
}
项目:openjdk-source-code-learn    文件:ORBSingleton.java   
public org.omg.CORBA.Environment create_environment()
{
    return new EnvironmentImpl();
}
项目:OLD-OpenJDK8    文件:RequestImpl.java   
public Environment env()
{
    return _env;
}
项目:OLD-OpenJDK8    文件:ORBImpl.java   
/**
 * Create an Environment
 *
 * @result          Environment created
 */
public synchronized org.omg.CORBA.Environment create_environment()
{
    checkShutdownState();
    return new EnvironmentImpl();
}
项目:OLD-OpenJDK8    文件:ORBSingleton.java   
public org.omg.CORBA.Environment create_environment()
{
    return new EnvironmentImpl();
}
项目:JamVM-PH    文件:OrbRestricted.java   
/** {@inheritDoc} */
public Environment create_environment()
{
  return new gnuEnvironment();
}
项目:JamVM-PH    文件:gnuRequest.java   
/** {@inheritDoc} */
public Environment env()
{
  return m_environment;
}
项目:openjdk-orb    文件:RequestImpl.java   
public Environment env()
{
    return _env;
}
项目:openjdk-orb    文件:ORBImpl.java   
/**
 * Create an Environment
 *
 * @result          Environment created
 */
public synchronized org.omg.CORBA.Environment create_environment()
{
    checkShutdownState();
    return new EnvironmentImpl();
}
项目:openjdk-orb    文件:ORBSingleton.java   
public org.omg.CORBA.Environment create_environment()
{
    return new EnvironmentImpl();
}
项目:classpath    文件:OrbRestricted.java   
/** {@inheritDoc} */
public Environment create_environment()
{
  return new gnuEnvironment();
}
项目:classpath    文件:gnuRequest.java   
/** {@inheritDoc} */
public Environment env()
{
  return m_environment;
}
项目:openjdk-icedtea7    文件:RequestImpl.java   
public Environment env()
{
    return _env;
}
项目:openjdk-icedtea7    文件:ORBImpl.java   
/**
 * Create an Environment
 *
 * @result          Environment created
 */
public synchronized org.omg.CORBA.Environment create_environment()
{
    checkShutdownState();
    return new EnvironmentImpl();
}