Codota Logo
Dimse.valueOf
Code IndexAdd Codota to your IDE (free)

How to use
valueOf
method
in
org.dcm4che3.net.Dimse

Best Java code snippets using org.dcm4che3.net.Dimse.valueOf (Showing top 10 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
StringBuilder s =
  • Codota Iconnew StringBuilder()
  • Codota Iconnew StringBuilder(32)
  • Codota IconString str;new StringBuilder(str)
  • Smart code suggestions by Codota
}
origin: org.dcm4che.dcm4chee-proxy/dcm4chee-proxy-conf

private static Dimse[] dimseArray(Preferences prefs, String key) {
  int n = prefs.getInt(key + ".#", 0);
  if (n == 0)
    return new Dimse[] {};
  Dimse[] dimse = new Dimse[n];
  for (int i = 0; i < n; i++)
    dimse[i] = Dimse.valueOf(prefs.get(key + '.' + (i + 1), null));
  return dimse;
}
origin: org.dcm4che.dcm4chee-proxy/dcm4chee-proxy-conf

private Dimse[] dimseArray(Attribute attr) throws NamingException {
  if (attr == null)
    return new Dimse[] {};
  Dimse[] dimse = new Dimse[attr.size()];
  for (int i = 0; i < dimse.length; i++)
    dimse[i] = Dimse.valueOf((String) attr.get(i));
  return dimse;
}
origin: dcm4che/dcm4che

private Dimse dimseOf(Attributes cmd) throws AAbort {
  try {
    return Dimse.valueOf(cmd.getInt(Tag.CommandField, 0));
  } catch (IllegalArgumentException e) {
    Dimse.LOG.info("{}: illegal DIMSE:", as);
    Dimse.LOG.info("\n{}", cmd);
    throw new AAbort();
  }
}
origin: org.dcm4che/dcm4che-net

private Dimse dimseOf(Attributes cmd) throws AAbort {
  try {
    return Dimse.valueOf(cmd.getInt(Tag.CommandField, 0));
  } catch (IllegalArgumentException e) {
    Dimse.LOG.info("{}: illegal DIMSE:", as);
    Dimse.LOG.info("\n{}", cmd);
    throw new AAbort();
  }
}
origin: dcm4che/dcm4che

public boolean tryWriteDimseRSP(PresentationContext pc, Attributes cmd, 
    Attributes data) {
  try {
    writeDimseRSP(pc, cmd, data);
    return true;
  } catch (IOException e) {
    LOG.warn("{} << {} failed: {}", new Object[] {
          this,
          Dimse.valueOf(cmd.getInt(Tag.CommandField, 0)),
          e.getMessage() });
    return false;
  }
}
origin: org.dcm4che/dcm4che-net

public boolean tryWriteDimseRSP(PresentationContext pc, Attributes cmd, 
    Attributes data) {
  try {
    writeDimseRSP(pc, cmd, data);
    return true;
  } catch (IOException e) {
    LOG.warn("{} << {} failed: {}", new Object[] {
          this,
          Dimse.valueOf(cmd.getInt(Tag.CommandField, 0)),
          e.getMessage() });
    return false;
  }
}
origin: org.dcm4che/dcm4che-conf-ldap

public void load(AttributeCoercions acs, String dn) throws NamingException {
  NamingEnumeration<SearchResult> ne =
      search(dn, "(objectclass=dcmAttributeCoercion)");
  try {
    while (ne.hasMore()) {
      SearchResult sr = ne.next();
      Attributes attrs = sr.getAttributes();
      acs.add(new AttributeCoercion(
          LdapUtils.stringValue(attrs.get("cn"), null),
          LdapUtils.stringArray(attrs.get("dcmSOPClass")),
          Dimse.valueOf(LdapUtils.stringValue(attrs.get("dcmDIMSE"), null)),
          TransferCapability.Role.valueOf(
              LdapUtils.stringValue(attrs.get("dicomTransferRole"), null)),
          LdapUtils.stringArray(attrs.get("dcmAETitle")),
          LdapUtils.stringValue(attrs.get("dcmURI"), null)));
    }
  } finally {
    LdapUtils.safeClose(ne);
  }
}
origin: dcm4che/dcm4che

public void load(AttributeCoercions acs, String dn) throws NamingException {
  NamingEnumeration<SearchResult> ne =
      search(dn, "(objectclass=dcmAttributeCoercion)");
  try {
    while (ne.hasMore()) {
      SearchResult sr = ne.next();
      Attributes attrs = sr.getAttributes();
      acs.add(new AttributeCoercion(
          LdapUtils.stringValue(attrs.get("cn"), null),
          LdapUtils.stringArray(attrs.get("dcmSOPClass")),
          Dimse.valueOf(LdapUtils.stringValue(attrs.get("dcmDIMSE"), null)),
          TransferCapability.Role.valueOf(
              LdapUtils.stringValue(attrs.get("dicomTransferRole"), null)),
          LdapUtils.stringArray(attrs.get("dcmAETitle")),
          LdapUtils.stringValue(attrs.get("dcmURI"), null)));
    }
  } finally {
    LdapUtils.safeClose(ne);
  }
}
origin: dcm4che/dcm4che

int pcid = pc.getPCID();
String tsuid = pc.getTransferSyntax();
Dimse dimse = Dimse.valueOf(cmd.getInt(Tag.CommandField, -1));
if (!dimse.isRSP() || !Status.isPending(cmd.getInt(Tag.Status, -1)))
  as.incSentCount(dimse);
origin: org.dcm4che/dcm4che-net

int pcid = pc.getPCID();
String tsuid = pc.getTransferSyntax();
Dimse dimse = Dimse.valueOf(cmd.getInt(Tag.CommandField, -1));
if (!dimse.isRSP() || !Status.isPending(cmd.getInt(Tag.Status, -1)))
  as.incSentCount(dimse);
org.dcm4che3.netDimsevalueOf

Popular methods of Dimse

  • commandFieldOfRSP
  • tagOfSOPClassUID
  • tagOfSOPInstanceUID
  • toString
  • commandField
  • isCService
  • isRSP
  • ordinal
  • promptAttributeIdentifierListTo
  • promptIntTo
  • promptMoveOriginatorTo
  • promptNumberOfSubOpsTo
  • promptMoveOriginatorTo,
  • promptNumberOfSubOpsTo,
  • promptStringTo,
  • promptUIDTo

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getResourceAsStream (ClassLoader)
  • findViewById (Activity)
  • getSupportFragmentManager (FragmentActivity)
    Return the FragmentManager for interacting with fragments associated with this activity.
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • FileInputStream (java.io)
    A FileInputStream obtains input bytes from a file in a file system. What files are available depends
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • BoxLayout (javax.swing)
  • Table (org.hibernate.mapping)
    A relational table
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now