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.TemplateReaderWriter
save
method.read
in class org.eclipse.text.templates.TemplateReaderWriter
reader
- the reader to read templates fromTemplatePersistenceData
IOException
- if reading from the stream failspublic TemplatePersistenceData readSingle(Reader reader, String id) throws IOException
org.eclipse.text.templates.TemplateReaderWriter
id
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.TemplateReaderWriter
reader
- the reader to read templates fromid
- the id of the template to returnTemplatePersistenceData
IOException
- if reading from the stream failspublic TemplatePersistenceData[] read(Reader reader, ResourceBundle bundle) throws IOException
org.eclipse.text.templates.TemplateReaderWriter
read
in class org.eclipse.text.templates.TemplateReaderWriter
reader
- the reader to read templates frombundle
- a resource bundle to use for translating the read templates, or null
if no translation should occurTemplatePersistenceData
IOException
- if reading from the stream failspublic TemplatePersistenceData[] read(InputStream stream, ResourceBundle bundle) throws IOException
org.eclipse.text.templates.TemplateReaderWriter
read
in class org.eclipse.text.templates.TemplateReaderWriter
stream
- the byte stream to read templates frombundle
- a resource bundle to use for translating the read templates, or null
if no translation should occurTemplatePersistenceData
IOException
- if reading from the stream failspublic void save(TemplatePersistenceData[] templates, OutputStream stream) throws IOException
IOException
public 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.