MediaContentCPIM.java 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. /* ----------------------------------------------------------------------------
  2. * This file was automatically generated by SWIG (http://www.swig.org).
  3. * Version 2.0.9
  4. *
  5. * Do not make changes to this file unless you know what you are doing--modify
  6. * the SWIG interface file instead.
  7. * ----------------------------------------------------------------------------- */
  8. package org.doubango.tinyWRAP;
  9. public class MediaContentCPIM extends MediaContent {
  10. private long swigCPtr;
  11. protected MediaContentCPIM(long cPtr, boolean cMemoryOwn) {
  12. super(tinyWRAPJNI.MediaContentCPIM_SWIGUpcast(cPtr), cMemoryOwn);
  13. swigCPtr = cPtr;
  14. }
  15. protected static long getCPtr(MediaContentCPIM obj) {
  16. return (obj == null) ? 0 : obj.swigCPtr;
  17. }
  18. protected void finalize() {
  19. delete();
  20. }
  21. public synchronized void delete() {
  22. if (swigCPtr != 0) {
  23. if (swigCMemOwn) {
  24. swigCMemOwn = false;
  25. tinyWRAPJNI.delete_MediaContentCPIM(swigCPtr);
  26. }
  27. swigCPtr = 0;
  28. }
  29. super.delete();
  30. }
  31. public long getPayloadLength() {
  32. return tinyWRAPJNI.MediaContentCPIM_getPayloadLength(swigCPtr, this);
  33. }
  34. public long getPayload(java.nio.ByteBuffer pOutput, long nMaxsize) {
  35. return tinyWRAPJNI.MediaContentCPIM_getPayload(swigCPtr, this, pOutput, nMaxsize);
  36. }
  37. public String getHeaderValue(String pName) {
  38. return tinyWRAPJNI.MediaContentCPIM_getHeaderValue(swigCPtr, this, pName);
  39. }
  40. }