Examples of GenericSegment


Examples of ca.uhn.hl7v2.model.GenericSegment

          Object[] constructorParamArgs = { dummy, factory };
          Constructor<? extends Segment> constructor = c.getConstructor(constructorParamTypes);
          msh = constructor.newInstance(constructorParamArgs);
        }
      } else {
        msh = new GenericSegment(dummy, "MSH");     
      }
    } catch (Exception e) {
      throw new HL7Exception("Couldn't create MSH for version " + version
          + " (does your classpath include this version?) ... ", e);
    }
View Full Code Here

Examples of ca.uhn.hl7v2.model.GenericSegment

    /**
     * Returns
     * GenericSegment (any order segment) - creates it if necessary
     */
    public GenericSegment getGenericSegment() {
       GenericSegment ret = null;
       try {
          ret = (GenericSegment)this.get("GenericSegment");
       } catch(HL7Exception e) {
          HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected error accessing data - this is probably a bug in the source code generator.", e);
          throw new RuntimeException(e);
View Full Code Here

Examples of ca.uhn.hl7v2.model.GenericSegment

    /**
     * Returns
     * GenericSegment (any order segment) - creates it if necessary
     */
    public GenericSegment getGenericSegment() {
       GenericSegment ret = null;
       try {
          ret = (GenericSegment)this.get("GenericSegment");
       } catch(HL7Exception e) {
          LoggerFactory.getLogger(getClass()).error("Unexpected error accessing data - this is probably a bug in the source code generator.", e);
          throw new RuntimeException(e);
View Full Code Here

Examples of ca.uhn.hl7v2.model.GenericSegment

          Object[] constructorParamArgs = { dummy, factory };
          Constructor<? extends Segment> constructor = c.getConstructor(constructorParamTypes);
          msh = constructor.newInstance(constructorParamArgs);
        }
      } else {
        msh = new GenericSegment(dummy, "MSH");     
      }
    } catch (Exception e) {
      throw new HL7Exception("Couldn't create MSH for version " + version
          + " (does your classpath include this version?) ... ", e);
    }
View Full Code Here

Examples of org.apache.commons.imaging.formats.jpeg.segments.GenericSegment

    private List<Segment> filterAPP1Segments(final List<Segment> segments) {
        final List<Segment> result = new ArrayList<Segment>();

        for (Segment s : segments) {
            final GenericSegment segment = (GenericSegment) s;
            if (isExifAPP1Segment(segment)) {
                result.add(segment);
            }
        }
View Full Code Here

Examples of org.apache.commons.imaging.formats.jpeg.segments.GenericSegment

            throw new ImageReadException(
                    "Imaging currently can't parse EXIF metadata split across multiple APP1 segments.  "
                            + "Please send this image to the Imaging project.");
        }

        final GenericSegment segment = (GenericSegment) exifSegments.get(0);
        final byte[] bytes = segment.getSegmentData();

        // byte head[] = readBytearray("exif head", bytes, 0, 6);
        //
        // Debug.debug("head", head);
View Full Code Here

Examples of org.apache.sanselan.formats.jpeg.segments.GenericSegment

    {
        ArrayList result = new ArrayList();

        for (int i = 0; i < v.size(); i++)
        {
            GenericSegment segment = (GenericSegment) v.get(i);
            if (isExifAPP1Segment(segment))
                result.add(segment);
        }

        return result;
View Full Code Here

Examples of org.apache.sanselan.formats.jpeg.segments.GenericSegment

        if (exifSegments.size() > 1)
            throw new ImageReadException(
                    "Sanselan currently can't parse EXIF metadata split across multiple APP1 segments.  "
                            + "Please send this image to the Sanselan project.");

        GenericSegment segment = (GenericSegment) exifSegments.get(0);
        byte bytes[] = segment.bytes;

        // byte head[] = readBytearray("exif head", bytes, 0, 6);
        //
        // Debug.debug("head", head);
View Full Code Here

Examples of org.apache.sanselan.formats.jpeg.segments.GenericSegment

  {
    ArrayList result = new ArrayList();

    for (int i = 0; i < v.size(); i++)
    {
      GenericSegment segment = (GenericSegment) v.get(i);
      if (isExifAPP1Segment(segment))
        result.add(segment);
    }

    return result;
View Full Code Here

Examples of org.apache.sanselan.formats.jpeg.segments.GenericSegment

    if (exifSegments.size() > 1)
      throw new ImageReadException(
          "Sanselan currently can't parse EXIF metadata split across multiple APP1 segments.  "
              + "Please send this image to the Sanselan project.");

    GenericSegment segment = (GenericSegment) exifSegments.get(0);
    byte bytes[] = segment.bytes;

    //    byte head[] = readBytearray("exif head", bytes, 0, 6);
    //
    //    Debug.debug("head", head);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.