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(java.io.InputStream stream,
java.util.ResourceBundle bundle)
Deprecated.
Reads templates from a stream and adds them to the templates.
|
TemplatePersistenceData[] |
read(java.io.Reader reader)
Deprecated.
Reads templates from a reader and returns them.
|
TemplatePersistenceData[] |
read(java.io.Reader reader,
java.util.ResourceBundle bundle)
Deprecated.
Reads templates from a stream and adds them to the templates.
|
TemplatePersistenceData |
readSingle(java.io.Reader reader,
java.lang.String id)
Deprecated.
Reads the template with identifier
id from a reader and
returns it. |
void |
save(TemplatePersistenceData[] templates,
java.io.OutputStream stream)
Deprecated.
|
void |
save(TemplatePersistenceData[] templates,
java.io.Writer writer)
Deprecated.
|
public TemplatePersistenceData[] read(java.io.Reader reader) throws java.io.IOException
org.eclipse.text.templates.TemplateReaderWritersave method.read in class org.eclipse.text.templates.TemplateReaderWriterreader - the reader to read templates fromTemplatePersistenceDatajava.io.IOException - if reading from the stream failspublic TemplatePersistenceData readSingle(java.io.Reader reader, java.lang.String id) throws java.io.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 returnTemplatePersistenceDatajava.io.IOException - if reading from the stream failspublic TemplatePersistenceData[] read(java.io.Reader reader, java.util.ResourceBundle bundle) throws java.io.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 occurTemplatePersistenceDatajava.io.IOException - if reading from the stream failspublic TemplatePersistenceData[] read(java.io.InputStream stream, java.util.ResourceBundle bundle) throws java.io.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 occurTemplatePersistenceDatajava.io.IOException - if reading from the stream failspublic void save(TemplatePersistenceData[] templates, java.io.OutputStream stream) throws java.io.IOException
java.io.IOExceptionpublic void save(TemplatePersistenceData[] templates, java.io.Writer writer) throws java.io.IOException
java.io.IOException
Copyright (c) 2000, 2018 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.