Codota Logo
CsvConfiguration.getHeaderCells
Code IndexAdd Codota to your IDE (free)

How to use
getHeaderCells
method
in
com.asakusafw.runtime.io.csv.CsvConfiguration

Best Java code snippets using com.asakusafw.runtime.io.csv.CsvConfiguration.getHeaderCells (Showing top 2 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
List l =
  • Codota Iconnew LinkedList()
  • Codota IconCollections.emptyList()
  • Codota Iconnew ArrayList()
  • Smart code suggestions by Codota
}
origin: asakusafw/asakusafw

/**
 * Creates a new instance.
 * @param stream the source stream
 * @param path the source path
 * @param config current configuration
 * @throws IllegalArgumentException if some parameters were {@code null}
 */
public CsvParser(InputStream stream, String path, CsvConfiguration config) {
  if (stream == null) {
    throw new IllegalArgumentException("stream must not be null"); //$NON-NLS-1$
  }
  if (config == null) {
    throw new IllegalArgumentException("config must not be null"); //$NON-NLS-1$
  }
  this.reader = new InputStreamReader(stream, config.getCharset());
  this.path = path;
  this.separator = config.getSeparatorChar();
  this.trueFormat = config.getTrueFormat();
  this.dateFormat = DateFormatter.newInstance(config.getDateFormat());
  this.dateTimeFormat = DateTimeFormatter.newInstance(config.getDateTimeFormat());
  this.headerCellsFormat = config.getHeaderCells();
  this.forceConsumeHeader = config.isForceConsumeHeader();
  this.allowLineBreakInValue = config.isLineBreakInValue();
  readerBuffer.clear();
  readerBuffer.flip();
}
origin: asakusafw/asakusafw

/**
 * Creates a new instance.
 * @param stream the target stream
 * @param path the destination path
 * @param config current configuration
 * @throws IllegalArgumentException if some parameters were {@code null}
 */
public CsvEmitter(OutputStream stream, String path, CsvConfiguration config) {
  if (stream == null) {
    throw new IllegalArgumentException("stream must not be null"); //$NON-NLS-1$
  }
  if (config == null) {
    throw new IllegalArgumentException("config must not be null"); //$NON-NLS-1$
  }
  this.writer = new OutputStreamWriter(stream, config.getCharset());
  this.separator = config.getSeparatorChar();
  this.escapePattern = Pattern.compile(
      "[" + ESCAPE + separator + LINE_DELIMITER + "]"); //$NON-NLS-1$ //$NON-NLS-2$
  this.trueFormat = escape(config.getTrueFormat());
  this.escapeTrue = hasEscapeTarget(config.getTrueFormat());
  this.falseFormat = escape(config.getFalseFormat());
  this.escapeFalse = hasEscapeTarget(config.getFalseFormat());
  this.dateFormat = DateFormatter.newInstance(config.getDateFormat());
  this.escapeDate = hasMetaCharacter(dateFormat.getPattern());
  this.dateTimeFormat = DateTimeFormatter.newInstance(config.getDateTimeFormat());
  this.escapeDateTime = hasMetaCharacter(dateTimeFormat.getPattern());
  this.headerCellsFormat = config.getHeaderCells();
  this.forceEscapeMask = buildQuoteMask(config.getForceQuoteColumns());
  this.columnIndex = 0;
}
com.asakusafw.runtime.io.csvCsvConfigurationgetHeaderCells

Javadoc

The header cell values.

Popular methods of CsvConfiguration

  • <init>
    Creates a new instance.
  • getCharset
    Returns the character set encoding name.
  • getDateFormat
    The Date format in SimpleDateFormat.
  • getDateTimeFormat
    The DateTime format in SimpleDateFormat.
  • getFalseFormat
    The boolean false format.
  • getForceQuoteColumns
    Returns column indices which quoting is always required.
  • getSeparatorChar
    Returns the field separator character.
  • getTrueFormat
    The boolean true format.
  • isForceConsumeHeader
    Returns whether forcibly consumes header cells or not.
  • isLineBreakInValue
    Returns whether allows line breaks in value.
  • setDefaultQuoteMode
  • setFieldDelimiter
  • setDefaultQuoteMode,
  • setFieldDelimiter,
  • setForceQuoteColumns,
  • setLineBreakInValue

Popular in Java

  • Start an intent from android
  • setRequestProperty (URLConnection)
  • notifyDataSetChanged (ArrayAdapter)
  • getResourceAsStream (ClassLoader)
    Returns a stream for the resource with the specified name. See #getResource(String) for a descriptio
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • FileInputStream (java.io)
    A FileInputStream obtains input bytes from a file in a file system. What files are available depends
  • Path (java.nio.file)
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • Stack (java.util)
    The Stack class represents a last-in-first-out (LIFO) stack of objects. It extends class Vector with
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
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