congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
StackWriterWrapper
Code IndexAdd Tabnine to your IDE (free)

How to use
StackWriterWrapper
in
org.apache.shindig.protocol.conversion.xstream

Best Java code snippets using org.apache.shindig.protocol.conversion.xstream.StackWriterWrapper (Showing top 20 results out of 315)

origin: apache/shindig

/**
 * Begin a new element or node of the supplied name.
 *
 * @param name
 *          the name of the node.
 *
 * @see com.thoughtworks.xstream.io.WriterWrapper#startNode(java.lang.String )
 */
@Override
public void startNode(String name) {
 super.startNode(translateName(name));
 addNamespace(name);
}
origin: org.wso2.org.apache.shindig/shindig-common

/**
 * Create a {@link HierarchicalStreamWriter} that tracks the path to the
 * current element based on a {@link java.io.Writer}.
 *
 * @param writer
 *          the underlying writer that will perform the writes.
 * @return the writer
 * @see com.thoughtworks.xstream.io.HierarchicalStreamDriver#createWriter(java.io.Writer)
 */
public HierarchicalStreamWriter createWriter(Writer writer) {
 HierarchicalStreamWriter parentWriter = parent.createWriter(writer);
 return new StackWriterWrapper(parentWriter, writerStack, namespaces);
}
origin: org.wso2.org.apache.shindig/shindig-common

/**
 * Create a {@link HierarchicalStreamWriter} that tracks the path to the
 * current element based on a {@link OutputStream}.
 *
 * @param outputStream
 *          the underlying output stream that will perform the writes.
 * @return the writer
 * @see com.thoughtworks.xstream.io.HierarchicalStreamDriver#createWriter(java.io.Writer)
 */
public HierarchicalStreamWriter createWriter(OutputStream outputStream) {
 HierarchicalStreamWriter parentWriter = parent.createWriter(outputStream);
 return new StackWriterWrapper(parentWriter, writerStack, namespaces);
}
origin: org.gatein.shindig/shindig-common

/**
 * Begin a new element or node of the supplied name.
 *
 * @param name
 *          the name of the node.
 *
 * @see com.thoughtworks.xstream.io.WriterWrapper#startNode(java.lang.String )
 */
@Override
public void startNode(String name) {
 super.startNode(translateName(name));
 addNamespace(name);
}
origin: com.lmco.shindig/shindig-common

/**
 * Create a {@link HierarchicalStreamWriter} that tracks the path to the
 * current element based on a {@link OutputStream}.
 *
 * @param outputStream
 *          the underlying output stream that will perform the writes.
 * @return the writer
 * @see com.thoughtworks.xstream.io.HierarchicalStreamDriver#createWriter(java.io.Writer)
 */
public HierarchicalStreamWriter createWriter(OutputStream outputStream) {
 HierarchicalStreamWriter parentWriter = parent.createWriter(outputStream);
 return new StackWriterWrapper(parentWriter, writerStack, namespaces);
}
origin: com.lmco.shindig/shindig-common

/**
 * Begin a new element or node of the supplied name.
 *
 * @param name
 *          the name of the node.
 *
 * @see com.thoughtworks.xstream.io.WriterWrapper#startNode(java.lang.String )
 */
@Override
public void startNode(String name) {
 super.startNode(translateName(name));
 addNamespace(name);
}
origin: org.gatein.shindig/shindig-common

/**
 * Create a {@link HierarchicalStreamWriter} that tracks the path to the
 * current element based on a {@link Writer}.
 *
 * @param writer
 *          the underlying writer that will perform the writes.
 * @return the writer
 * @see com.thoughtworks.xstream.io.HierarchicalStreamDriver#createWriter(java.io.Writer)
 */
public HierarchicalStreamWriter createWriter(Writer writer) {
 HierarchicalStreamWriter parentWriter = parent.createWriter(writer);
 return new StackWriterWrapper(parentWriter, writerStack, namespaces);
}
origin: org.apache.shindig/shindig-common

/**
 * Begin a new element or node of the supplied name.
 *
 * @param name
 *          the name of the node.
 *
 * @see com.thoughtworks.xstream.io.WriterWrapper#startNode(java.lang.String )
 */
@Override
public void startNode(String name) {
 super.startNode(translateName(name));
 addNamespace(name);
}
origin: org.gatein.shindig/shindig-common

/**
 * Create a {@link HierarchicalStreamWriter} that tracks the path to the
 * current element based on a {@link OutputStream}.
 *
 * @param outputStream
 *          the underlying output stream that will perform the writes.
 * @return the writer
 * @see com.thoughtworks.xstream.io.HierarchicalStreamDriver#createWriter(java.io.Writer)
 */
public HierarchicalStreamWriter createWriter(OutputStream outputStream) {
 HierarchicalStreamWriter parentWriter = parent.createWriter(outputStream);
 return new StackWriterWrapper(parentWriter, writerStack, namespaces);
}
origin: org.wso2.org.apache.shindig/shindig-common

/**
 * Begin a new element or node of the supplied name.
 *
 * @param name
 *          the name of the node.
 *
 * @see com.thoughtworks.xstream.io.WriterWrapper#startNode(java.lang.String )
 */
@Override
public void startNode(String name) {
 super.startNode(translateName(name));
 addNamespace(name);
}
origin: org.apache.shindig/shindig-common

/**
 * Create a {@link HierarchicalStreamWriter} that tracks the path to the
 * current element based on a {@link java.io.Writer}.
 *
 * @param writer
 *          the underlying writer that will perform the writes.
 * @return the writer
 * @see com.thoughtworks.xstream.io.HierarchicalStreamDriver#createWriter(java.io.Writer)
 */
public HierarchicalStreamWriter createWriter(Writer writer) {
 HierarchicalStreamWriter parentWriter = parent.createWriter(writer);
 return new StackWriterWrapper(parentWriter, writerStack, namespaces);
}
origin: org.apache.shindig/shindig-common

/**
 * Start a node with a specific class. This may invoke
 * {@link StackWriterWrapper#startNode(String)} so we might have double
 * recording of the position in the stack. This would be a bug.
 *
 * @see com.thoughtworks.xstream.io.WriterWrapper#startNode(java.lang.String ,
 *      java.lang.Class)
 */
@SuppressWarnings("unchecked")
// API is not generic
@Override
public void startNode(String name, Class clazz) {
 super.startNode(translateName(name), clazz);
 addNamespace(name);
}
origin: org.apache.shindig/shindig-common

/**
 * Create a {@link HierarchicalStreamWriter} that tracks the path to the
 * current element based on a {@link OutputStream}.
 *
 * @param outputStream
 *          the underlying output stream that will perform the writes.
 * @return the writer
 * @see com.thoughtworks.xstream.io.HierarchicalStreamDriver#createWriter(java.io.Writer)
 */
public HierarchicalStreamWriter createWriter(OutputStream outputStream) {
 HierarchicalStreamWriter parentWriter = parent.createWriter(outputStream);
 return new StackWriterWrapper(parentWriter, writerStack, namespaces);
}
origin: org.gatein.shindig/shindig-common

/**
 * Start a node with a specific class. This may invoke
 * {@link StackWriterWrapper#startNode(String)} so we might have double
 * recording of the position in the stack. This would be a bug.
 *
 * @see com.thoughtworks.xstream.io.WriterWrapper#startNode(java.lang.String ,
 *      java.lang.Class)
 */
@SuppressWarnings("unchecked")
// API is not generic
@Override
public void startNode(String name, Class clazz) {
 super.startNode(translateName(name), clazz);
 addNamespace(name);
}
origin: apache/shindig

/**
 * Create a {@link HierarchicalStreamWriter} that tracks the path to the
 * current element based on a {@link java.io.Writer}.
 *
 * @param writer
 *          the underlying writer that will perform the writes.
 * @return the writer
 * @see com.thoughtworks.xstream.io.HierarchicalStreamDriver#createWriter(java.io.Writer)
 */
public HierarchicalStreamWriter createWriter(Writer writer) {
 HierarchicalStreamWriter parentWriter = parent.createWriter(writer);
 return new StackWriterWrapper(parentWriter, writerStack, namespaces);
}
origin: com.lmco.shindig/shindig-common

/**
 * Start a node with a specific class. This may invoke
 * {@link StackWriterWrapper#startNode(String)} so we might have double
 * recording of the position in the stack. This would be a bug.
 *
 * @see com.thoughtworks.xstream.io.WriterWrapper#startNode(java.lang.String ,
 *      java.lang.Class)
 */
@SuppressWarnings("unchecked")
// API is not generic
@Override
public void startNode(String name, Class clazz) {
 super.startNode(translateName(name), clazz);
 addNamespace(name);
}
origin: com.lmco.shindig/shindig-common

/**
 * Create a {@link HierarchicalStreamWriter} that tracks the path to the
 * current element based on a {@link Writer}.
 *
 * @param writer
 *          the underlying writer that will perform the writes.
 * @return the writer
 * @see com.thoughtworks.xstream.io.HierarchicalStreamDriver#createWriter(java.io.Writer)
 */
public HierarchicalStreamWriter createWriter(Writer writer) {
 HierarchicalStreamWriter parentWriter = parent.createWriter(writer);
 return new StackWriterWrapper(parentWriter, writerStack, namespaces);
}
origin: org.wso2.org.apache.shindig/shindig-common

/**
 * Start a node with a specific class. This may invoke
 * {@link StackWriterWrapper#startNode(String)} so we might have double
 * recording of the position in the stack. This would be a bug.
 *
 * @see com.thoughtworks.xstream.io.WriterWrapper#startNode(java.lang.String ,
 *      java.lang.Class)
 */
@SuppressWarnings("unchecked")
// API is not generic
@Override
public void startNode(String name, Class clazz) {
 super.startNode(translateName(name), clazz);
 addNamespace(name);
}
origin: apache/shindig

/**
 * Create a {@link HierarchicalStreamWriter} that tracks the path to the
 * current element based on a {@link OutputStream}.
 *
 * @param outputStream
 *          the underlying output stream that will perform the writes.
 * @return the writer
 * @see com.thoughtworks.xstream.io.HierarchicalStreamDriver#createWriter(java.io.Writer)
 */
public HierarchicalStreamWriter createWriter(OutputStream outputStream) {
 HierarchicalStreamWriter parentWriter = parent.createWriter(outputStream);
 return new StackWriterWrapper(parentWriter, writerStack, namespaces);
}
origin: apache/shindig

/**
 * Start a node with a specific class. This may invoke
 * {@link StackWriterWrapper#startNode(String)} so we might have double
 * recording of the position in the stack. This would be a bug.
 *
 * @see com.thoughtworks.xstream.io.WriterWrapper#startNode(java.lang.String ,
 *      java.lang.Class)
 */
@SuppressWarnings("unchecked")
// API is not generic
@Override
public void startNode(String name, Class clazz) {
 super.startNode(translateName(name), clazz);
 addNamespace(name);
}
org.apache.shindig.protocol.conversion.xstreamStackWriterWrapper

Javadoc

A Writer that provides a Stack based tracking of the location of the underlying writer.

Most used methods

  • <init>
    Create a StackWriterWrapper that wraps a HierarchicalStreamWriter and tracks where that writer is in
  • addNamespace
  • translateName

Popular in Java

  • Making http post requests using okhttp
  • getSharedPreferences (Context)
  • putExtra (Intent)
  • getApplicationContext (Context)
  • MalformedURLException (java.net)
    This exception is thrown when a program attempts to create an URL from an incorrect specification.
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
  • Table (org.hibernate.mapping)
    A relational table
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • From CI to AI: The AI layer in your organization
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now