congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
NativeConverter.closeConverter
Code IndexAdd Tabnine to your IDE (free)

How to use
closeConverter
method
in
libcore.icu.NativeConverter

Best Java code snippets using libcore.icu.NativeConverter.closeConverter (Showing top 20 results out of 315)

origin: robovm/robovm

@Override protected void finalize() throws Throwable {
  try {
    NativeConverter.closeConverter(converterHandle);
    converterHandle=0;
  } finally {
    super.finalize();
  }
}
origin: robovm/robovm

@Override protected void finalize() throws Throwable {
  try {
    NativeConverter.closeConverter(converterHandle);
    converterHandle = 0;
  } finally {
    super.finalize();
  }
}
origin: robovm/robovm

public static CharsetDecoderICU newInstance(Charset cs, String icuCanonicalName) {
  // This complexity is necessary to ensure that even if the constructor, superclass
  // constructor, or call to updateCallback throw, we still free the native peer.
  long address = 0;
  try {
    address = NativeConverter.openConverter(icuCanonicalName);
    float averageCharsPerByte = NativeConverter.getAveCharsPerByte(address);
    CharsetDecoderICU result = new CharsetDecoderICU(cs, averageCharsPerByte, address);
    address = 0; // CharsetDecoderICU has taken ownership; its finalizer will do the free.
    result.updateCallback();
    return result;
  } finally {
    if (address != 0) {
      NativeConverter.closeConverter(address);
    }
  }
}
origin: robovm/robovm

public static CharsetEncoderICU newInstance(Charset cs, String icuCanonicalName) {
  // This complexity is necessary to ensure that even if the constructor, superclass
  // constructor, or call to updateCallback throw, we still free the native peer.
  long address = 0;
  try {
    address = NativeConverter.openConverter(icuCanonicalName);
    float averageBytesPerChar = NativeConverter.getAveBytesPerChar(address);
    float maxBytesPerChar = NativeConverter.getMaxBytesPerChar(address);
    byte[] replacement = makeReplacement(icuCanonicalName, address);
    CharsetEncoderICU result = new CharsetEncoderICU(cs, averageBytesPerChar, maxBytesPerChar, replacement, address);
    address = 0; // CharsetEncoderICU has taken ownership; its finalizer will do the free.
    return result;
  } finally {
    if (address != 0) {
      NativeConverter.closeConverter(address);
    }
  }
}
origin: ibinti/bugvm

@Override protected void finalize() throws Throwable {
  try {
    NativeConverter.closeConverter(converterHandle);
    converterHandle=0;
  } finally {
    super.finalize();
  }
}
origin: ibinti/bugvm

@Override protected void finalize() throws Throwable {
  try {
    NativeConverter.closeConverter(converterHandle);
    converterHandle = 0;
  } finally {
    super.finalize();
  }
}
origin: com.bugvm/bugvm-rt

@Override protected void finalize() throws Throwable {
  try {
    NativeConverter.closeConverter(converterHandle);
    converterHandle=0;
  } finally {
    super.finalize();
  }
}
origin: MobiVM/robovm

@Override protected void finalize() throws Throwable {
  try {
    NativeConverter.closeConverter(converterHandle);
    converterHandle = 0;
  } finally {
    super.finalize();
  }
}
origin: MobiVM/robovm

@Override protected void finalize() throws Throwable {
  try {
    NativeConverter.closeConverter(converterHandle);
    converterHandle=0;
  } finally {
    super.finalize();
  }
}
origin: com.bugvm/bugvm-rt

@Override protected void finalize() throws Throwable {
  try {
    NativeConverter.closeConverter(converterHandle);
    converterHandle = 0;
  } finally {
    super.finalize();
  }
}
origin: com.gluonhq/robovm-rt

@Override protected void finalize() throws Throwable {
  try {
    NativeConverter.closeConverter(converterHandle);
    converterHandle = 0;
  } finally {
    super.finalize();
  }
}
origin: com.gluonhq/robovm-rt

@Override protected void finalize() throws Throwable {
  try {
    NativeConverter.closeConverter(converterHandle);
    converterHandle=0;
  } finally {
    super.finalize();
  }
}
origin: com.mobidevelop.robovm/robovm-rt

@Override protected void finalize() throws Throwable {
  try {
    NativeConverter.closeConverter(converterHandle);
    converterHandle=0;
  } finally {
    super.finalize();
  }
}
origin: com.mobidevelop.robovm/robovm-rt

@Override protected void finalize() throws Throwable {
  try {
    NativeConverter.closeConverter(converterHandle);
    converterHandle = 0;
  } finally {
    super.finalize();
  }
}
origin: FlexoVM/flexovm

@Override protected void finalize() throws Throwable {
  try {
    NativeConverter.closeConverter(converterHandle);
    converterHandle=0;
  } finally {
    super.finalize();
  }
}
origin: FlexoVM/flexovm

@Override protected void finalize() throws Throwable {
  try {
    NativeConverter.closeConverter(converterHandle);
    converterHandle = 0;
  } finally {
    super.finalize();
  }
}
origin: com.mobidevelop.robovm/robovm-rt

public static CharsetDecoderICU newInstance(Charset cs, String icuCanonicalName) {
  // This complexity is necessary to ensure that even if the constructor, superclass
  // constructor, or call to updateCallback throw, we still free the native peer.
  long address = 0;
  try {
    address = NativeConverter.openConverter(icuCanonicalName);
    float averageCharsPerByte = NativeConverter.getAveCharsPerByte(address);
    CharsetDecoderICU result = new CharsetDecoderICU(cs, averageCharsPerByte, address);
    address = 0; // CharsetDecoderICU has taken ownership; its finalizer will do the free.
    result.updateCallback();
    return result;
  } finally {
    if (address != 0) {
      NativeConverter.closeConverter(address);
    }
  }
}
origin: MobiVM/robovm

public static CharsetDecoderICU newInstance(Charset cs, String icuCanonicalName) {
  // This complexity is necessary to ensure that even if the constructor, superclass
  // constructor, or call to updateCallback throw, we still free the native peer.
  long address = 0;
  try {
    address = NativeConverter.openConverter(icuCanonicalName);
    float averageCharsPerByte = NativeConverter.getAveCharsPerByte(address);
    CharsetDecoderICU result = new CharsetDecoderICU(cs, averageCharsPerByte, address);
    address = 0; // CharsetDecoderICU has taken ownership; its finalizer will do the free.
    result.updateCallback();
    return result;
  } finally {
    if (address != 0) {
      NativeConverter.closeConverter(address);
    }
  }
}
origin: MobiVM/robovm

public static CharsetEncoderICU newInstance(Charset cs, String icuCanonicalName) {
  // This complexity is necessary to ensure that even if the constructor, superclass
  // constructor, or call to updateCallback throw, we still free the native peer.
  long address = 0;
  try {
    address = NativeConverter.openConverter(icuCanonicalName);
    float averageBytesPerChar = NativeConverter.getAveBytesPerChar(address);
    float maxBytesPerChar = NativeConverter.getMaxBytesPerChar(address);
    byte[] replacement = makeReplacement(icuCanonicalName, address);
    CharsetEncoderICU result = new CharsetEncoderICU(cs, averageBytesPerChar, maxBytesPerChar, replacement, address);
    address = 0; // CharsetEncoderICU has taken ownership; its finalizer will do the free.
    return result;
  } finally {
    if (address != 0) {
      NativeConverter.closeConverter(address);
    }
  }
}
origin: ibinti/bugvm

public static CharsetEncoderICU newInstance(Charset cs, String icuCanonicalName) {
  // This complexity is necessary to ensure that even if the constructor, superclass
  // constructor, or call to updateCallback throw, we still free the native peer.
  long address = 0;
  try {
    address = NativeConverter.openConverter(icuCanonicalName);
    float averageBytesPerChar = NativeConverter.getAveBytesPerChar(address);
    float maxBytesPerChar = NativeConverter.getMaxBytesPerChar(address);
    byte[] replacement = makeReplacement(icuCanonicalName, address);
    CharsetEncoderICU result = new CharsetEncoderICU(cs, averageBytesPerChar, maxBytesPerChar, replacement, address);
    address = 0; // CharsetEncoderICU has taken ownership; its finalizer will do the free.
    return result;
  } finally {
    if (address != 0) {
      NativeConverter.closeConverter(address);
    }
  }
}
libcore.icuNativeConvertercloseConverter

Popular methods of NativeConverter

  • charsetForName
  • contains
  • decode
  • encode
  • getAvailableCharsetNames
  • getAveBytesPerChar
  • getAveCharsPerByte
  • getMaxBytesPerChar
  • getSubstitutionBytes
  • openConverter
  • resetByteToChar
  • resetCharToByte
  • resetByteToChar,
  • resetCharToByte,
  • setCallbackDecode,
  • setCallbackEncode,
  • translateCodingErrorAction

Popular in Java

  • Creating JSON documents from java classes using gson
  • runOnUiThread (Activity)
  • getSystemService (Context)
  • getApplicationContext (Context)
  • Socket (java.net)
    Provides a client-side TCP socket.
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • ConcurrentHashMap (java.util.concurrent)
    A plug-in replacement for JDK1.5 java.util.concurrent.ConcurrentHashMap. This version is based on or
  • ImageIO (javax.imageio)
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • JCheckBox (javax.swing)
  • Best IntelliJ plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now