Package be.uclouvain.orthanc
Class FindMatcher
- java.lang.Object
-
- be.uclouvain.orthanc.FindMatcher
-
public class FindMatcher extends java.lang.ObjectMatcher for DICOM C-FIND query
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedFindMatcher(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 FindMatchercreateFindMatcher(byte[] query)Create a C-Find matcher.voiddispose()Manually deallocate the C object that is associated with this Java wrapper.protected voidfinalize()protected longgetSelf()Return the C object that is associated with this Java wrapper.intisMatch(byte[] dicom)Test whether a DICOM instance matches a C-Find query.
-
-
-
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:
finalizein classjava.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.
-
isMatch
public int isMatch(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.
-
-