|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.linkedin.restli.restspec.RestSpecCodec
public class RestSpecCodec
| Constructor Summary | |
|---|---|
RestSpecCodec()
Initialize a default RestSpecCodec. |
|
| Method Summary | |
|---|---|
ResourceSchema |
readResourceSchema(java.io.InputStream inputStream)
Reads a ResourceSchema from the given input stream, fixes it if necessary, and returns it. |
static com.linkedin.data.schema.DataSchema |
textToSchema(java.lang.String typeText,
com.linkedin.data.schema.DataSchemaResolver schemaResolver)
Generate a DataSchema from a JSON representation and a DataSchemaResolver. |
void |
writeResourceSchema(ResourceSchema schema,
java.io.OutputStream outputStream)
Write the given ResourceSchema to the OutputStream. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RestSpecCodec()
| Method Detail |
|---|
public ResourceSchema readResourceSchema(java.io.InputStream inputStream)
throws java.io.IOException
inputStream - inputStream to read the ResourceSchema from
java.io.IOException
public void writeResourceSchema(ResourceSchema schema,
java.io.OutputStream outputStream)
throws java.io.IOException
schema - a ResourceSchemaoutputStream - an outputStream
java.io.IOException
public static com.linkedin.data.schema.DataSchema textToSchema(java.lang.String typeText,
com.linkedin.data.schema.DataSchemaResolver schemaResolver)
typeText - a String JSON representation of a DataSchemaschemaResolver - the schemaResolver to use to resolve the typeText
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||