Java Code Examples for java.io.BufferedReader#markSupported()

The following examples show how to use java.io.BufferedReader#markSupported() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: DgeHeaderCodec.java    From Drop-seq with MIT License 4 votes vote down vote up
/**
  *
  * @param reader When method returns, reader is positioned at start of first line after header
  */
 public DgeHeader decode(final BufferedReader reader, final String inputName) {
     if (!reader.markSupported())
throw new IllegalArgumentException("reader.markSupported == false");
     return decode(new DgeBufferedReader(reader), inputName);
 }