Codota Logo
BufferedSegmentReader.changeEncoding
Code IndexAdd Codota to your IDE (free)

How to use
changeEncoding
method
in
org.milyn.edisax.BufferedSegmentReader

Best Java code snippets using org.milyn.edisax.BufferedSegmentReader.changeEncoding (Showing top 4 results out of 315)

  • Common ways to obtain BufferedSegmentReader
private void myMethod () {
BufferedSegmentReader b =
  • Codota IconInterchangeContext interchangeContext;interchangeContext.getSegmentReader()
  • Codota IconInputSource ediInputSource;EdifactModel edifactModel;new BufferedSegmentReader(ediInputSource, edifactModel.getDelimiters())
  • Codota IconInputSource ediInputSource;Delimiters rootDelimiters;new BufferedSegmentReader(ediInputSource, rootDelimiters)
  • Smart code suggestions by Codota
}
origin: org.milyn/milyn-edisax-parser

  private void changeReadEncoding(String code, BufferedSegmentReader bufferedSegmentReader) throws EDIParseException, IOException {
    Charset charset = toCharsetMapping.get(code.toUpperCase());
    
    if(charset == null) {
      throw new EDIParseException("Unknown UN/EDIFACT character stream encoding code '" + code + "'.");
    }
    
    bufferedSegmentReader.changeEncoding(charset);
  }
}
origin: org.milyn/milyn-smooks-all

  private void changeReadEncoding(String code, BufferedSegmentReader bufferedSegmentReader) throws EDIParseException, IOException {
    Charset charset = toCharsetMapping.get(code.toUpperCase());
    
    if(charset == null) {
      throw new EDIParseException("Unknown UN/EDIFACT character stream encoding code '" + code + "'.");
    }
    
    bufferedSegmentReader.changeEncoding(charset);
  }
}
origin: smooks/smooks

  private void changeReadEncoding(String code, BufferedSegmentReader bufferedSegmentReader) throws EDIParseException, IOException {
    Charset charset = toCharsetMapping.get(code.toUpperCase());
    
    if(charset == null) {
      throw new EDIParseException("Unknown UN/EDIFACT character stream encoding code '" + code + "'.");
    }
    
    bufferedSegmentReader.changeEncoding(charset);
  }
}
origin: org.virtuslab/milyn-edisax-parser

  private void changeReadEncoding(String code, BufferedSegmentReader bufferedSegmentReader) throws EDIParseException, IOException {
    Charset charset = toCharsetMapping.get(code.toUpperCase());
    
    if(charset == null) {
      throw new EDIParseException("Unknown UN/EDIFACT character stream encoding code '" + code + "'.");
    }
    
    bufferedSegmentReader.changeEncoding(charset);
  }
}
org.milyn.edisaxBufferedSegmentReaderchangeEncoding

Javadoc

Change the encoding used to read the underlying EDI data stream.

#mark() should have been called first.

Popular methods of BufferedSegmentReader

  • <init>
    Construct the stream reader.
  • assertCurrentSegmentExists
    Assert that there is a current segment.
  • forwardPastWhitespace
  • getCurrentSegmentFields
    Get the current EDI segment fields.
  • getCurrentSegmentNumber
    Get the current segment "number". The first segment is "segment number 1".
  • getDelimiters
    Get the current delimiter set.
  • getSegmentBuffer
    Get the segment buffer.
  • hasCurrentSegment
    Does the read have a segment buffered and ready for processing.
  • mark
    Try mark the stream so we can support changing of the reader encoding.
  • moveToNextSegment
    Move to the next EDI segment. Simply reads and buffers the next EDI segment.
  • peek
    Peek a fixed number of characters from the input source. Peek differs from #read(int) in that it lea
  • popDelimiters
    Restore the parent delimiters set. Be sure to #getDelimitersStack() and check that it is not empty b
  • peek,
  • popDelimiters,
  • pushDelimiters,
  • read,
  • readChar,
  • setIgnoreNewLines,
  • setSegmentListener

Popular in Java

  • Making http post requests using okhttp
  • getResourceAsStream (ClassLoader)
  • startActivity (Activity)
  • setScale (BigDecimal)
    Returns a BigDecimal whose scale is the specified value, and whose value is numerically equal to thi
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • JList (javax.swing)
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