Class Schema
- java.lang.Object
-
- org.apache.directory.api.ldap.schema.converter.Schema
-
public class Schema extends Object
A bean used to hold a schema. We keep its name and we associate with this object an inputStream mapped on the OpenLdap schema to read, and a writer in which the ldif file will be dumped.- Author:
- Apache Directory Project
-
-
Constructor Summary
Constructors Constructor Description Schema()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InputStream
getInput()
String
getName()
Writer
getOutput()
void
setInput(InputStream in)
Set the inputStream mapped on the schema filevoid
setName(String name)
Set the schema name to parse.void
setOutput(Writer out)
Set a writer to dump the ldif filesString
toString()
-
-
-
Constructor Detail
-
Schema
public Schema()
-
-
Method Detail
-
setName
public void setName(String name)
Set the schema name to parse. This name is the prefix of the schema file, which postfix is '.schema'. For instance, 'test.schema' being the file to parse, its name will be 'test'- Parameters:
name
- The schema name
-
setInput
public void setInput(InputStream in)
Set the inputStream mapped on the schema file- Parameters:
in
- The InputStream mapped on the schema file
-
getInput
public InputStream getInput()
- Returns:
- The InputStream mapped on the schema file
-
setOutput
public void setOutput(Writer out)
Set a writer to dump the ldif files- Parameters:
out
- The writer
-
toString
public String toString()
- Overrides:
toString
in classObject
- See Also:
Object.toString()
-
-