public class PropertiesHelper extends Object
| Constructor and Description |
|---|
PropertiesHelper() |
PropertiesHelper(boolean unicodeEscaping) |
PropertiesHelper(boolean unicodeEscaping,
org.eclipse.emf.common.util.URI uri) |
| Modifier and Type | Method and Description |
|---|---|
org.eclipse.emf.ecore.resource.ContentHandler.ByteOrderMark |
checkForBom(InputStream inputStream)
returns the BOM if available.
|
String |
getLicenseHeader() |
Property |
readProperty(BufferedReader reader) |
void |
writeLicenseHeader(Writer writer,
String licenseHeader) |
void |
writeProperty(Writer writer,
Property property) |
public PropertiesHelper()
public PropertiesHelper(boolean unicodeEscaping)
public PropertiesHelper(boolean unicodeEscaping,
org.eclipse.emf.common.util.URI uri)
unicodeEscaping - uri - can be used to log the path of invalid files if suppliedpublic Property readProperty(BufferedReader reader) throws IOException
IOExceptionpublic void writeProperty(Writer writer, Property property) throws IOException
IOExceptionpublic org.eclipse.emf.ecore.resource.ContentHandler.ByteOrderMark checkForBom(InputStream inputStream) throws IOException
inputStream - must support mark/rest, or an IllegalArgumentException is thrownIOException, - IllegalArgumentExceptionIOExceptionpublic String getLicenseHeader()
null if not availablepublic void writeLicenseHeader(Writer writer, String licenseHeader) throws IOException
IOExceptionCopyright © 2013–2014 Jabylon. All rights reserved.