TemplateReaderWriter@Deprecated public class TemplateReaderWriter extends org.eclipse.text.templates.TemplateReaderWriter
Clients may instantiate this class, it is not intended to be subclassed.
| Constructor and Description |
|---|
TemplateReaderWriter()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
TemplatePersistenceData[] |
read(InputStream stream,
ResourceBundle bundle)
Deprecated.
Reads templates from a stream and adds them to the templates.
|
TemplatePersistenceData[] |
read(Reader reader)
Deprecated.
Reads templates from a reader and returns them.
|
TemplatePersistenceData[] |
read(Reader reader,
ResourceBundle bundle)
Deprecated.
Reads templates from a stream and adds them to the templates.
|
TemplatePersistenceData |
readSingle(Reader reader,
String id)
Deprecated.
Reads the template with identifier
id from a reader and
returns it. |
void |
save(TemplatePersistenceData[] templates,
OutputStream stream)
Deprecated.
|
void |
save(TemplatePersistenceData[] templates,
Writer writer)
Deprecated.
|
public TemplatePersistenceData[] read(Reader reader) throws IOException
org.eclipse.text.templates.TemplateReaderWritersave method.read in class org.eclipse.text.templates.TemplateReaderWriterreader - the reader to read templates fromTemplatePersistenceDataIOException - if reading from the stream failspublic TemplatePersistenceData readSingle(Reader reader, String id) throws IOException
org.eclipse.text.templates.TemplateReaderWriterid from a reader and
returns it. The reader must present a serialized form as produced by the
save method.readSingle in class org.eclipse.text.templates.TemplateReaderWriterreader - the reader to read templates fromid - the id of the template to returnTemplatePersistenceDataIOException - if reading from the stream failspublic TemplatePersistenceData[] read(Reader reader, ResourceBundle bundle) throws IOException
org.eclipse.text.templates.TemplateReaderWriterread in class org.eclipse.text.templates.TemplateReaderWriterreader - the reader to read templates frombundle - a resource bundle to use for translating the read templates, or null if no translation should occurTemplatePersistenceDataIOException - if reading from the stream failspublic TemplatePersistenceData[] read(InputStream stream, ResourceBundle bundle) throws IOException
org.eclipse.text.templates.TemplateReaderWriterread in class org.eclipse.text.templates.TemplateReaderWriterstream - the byte stream to read templates frombundle - a resource bundle to use for translating the read templates, or null if no translation should occurTemplatePersistenceDataIOException - if reading from the stream failspublic void save(TemplatePersistenceData[] templates, OutputStream stream) throws IOException
IOExceptionpublic void save(TemplatePersistenceData[] templates, Writer writer) throws IOException
IOException
Copyright (c) 2000, 2018 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.