Class FindMatcher


  • public class FindMatcher
    extends java.lang.Object
    Matcher for DICOM C-FIND query
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected FindMatcher​(long self)
      Construct a Java object wrapping a C object that is managed by Orthanc.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static FindMatcher createFindMatcher​(byte[] query)
      Create a C-Find matcher.
      void dispose()
      Manually deallocate the C object that is associated with this Java wrapper.
      protected void finalize()  
      int findMatcherIsMatch​(byte[] dicom)
      Test whether a DICOM instance matches a C-Find query.
      protected long getSelf()
      Return the C object that is associated with this Java wrapper.
      • Methods inherited from class java.lang.Object

        clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • FindMatcher

        protected FindMatcher​(long self)
        Construct a Java object wrapping a C object that is managed by Orthanc.
        Parameters:
        self - Pointer to the C object.
    • Method Detail

      • getSelf

        protected long getSelf()
        Return the C object that is associated with this Java wrapper.
        Returns:
        Pointer to the C object.
      • finalize

        protected void finalize()
                         throws java.lang.Throwable
        Overrides:
        finalize in class java.lang.Object
        Throws:
        java.lang.Throwable
      • dispose

        public void dispose()
        Manually deallocate the C object that is associated with this Java wrapper. This method can be used to immediately deallocate the C object, instead of waiting for the garbage collector to dispose the Java wrapper.
      • createFindMatcher

        public static FindMatcher createFindMatcher​(byte[] query)
        Create a C-Find matcher. This function creates a "matcher" object that can be used to check whether a DICOM instance matches a C-Find query. The C-Find query must be expressed as a DICOM buffer.
        Parameters:
        query - The C-Find DICOM query.
        Returns:
        The newly constructed object.
      • findMatcherIsMatch

        public int findMatcherIsMatch​(byte[] dicom)
        Test whether a DICOM instance matches a C-Find query. This function checks whether one DICOM instance matches C-Find matcher that was previously allocated using OrthancPluginCreateFindMatcher().
        Parameters:
        dicom - The DICOM instance to be matched.
        Returns:
        1 if the DICOM instance matches the query, 0 otherwise.