org.eclipse.xtend.backend.util
Class ResourceToList

java.lang.Object
  extended by org.eclipse.xtend.backend.util.ResourceToList

public final class ResourceToList
extends java.lang.Object

This class converts the contents of a resource to a list. It removes empty lines (i.e. lines containing only whitespace), and it trims leading and trailing whitespace. It also removes comments, i.e. parts of a line following a '#' character.
The contents of the file are read using the default locale of the platform.

Author:
Arno Haase (http://www.haase-consulting.com)

Constructor Summary
ResourceToList(java.io.InputStream in)
           
 
Method Summary
 java.util.List<java.lang.String> getResult()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceToList

public ResourceToList(java.io.InputStream in)
Parameters:
in - may be null, in which case the resulting list is empty.
Method Detail

getResult

public java.util.List<java.lang.String> getResult()