@Override public Reader getCharacterStream () { return new NonBlockingStringReader (m_sText); }
public StringStreamSource (@Nonnull final char [] aInput) { super (new NonBlockingStringReader (aInput)); }
public StringStreamSource (@Nonnull final char [] aInput, @Nonnegative final int nOfs, @Nonnegative final int nLen) { super (new NonBlockingStringReader (aInput, nOfs, nLen)); }
public StringStreamSource (@Nonnull final String sInput, @Nullable final String sSystemID) { super (new NonBlockingStringReader (sInput)); setSystemId (sSystemID); }
@Nonnull public MarkdownProcessingResult process (@Nullable final String sText) throws IOException { return process (new NonBlockingStringReader (StringHelper.getNotNull (sText))); }
/** * Read a document from the specified String. The secure reading feature has * affect when using this method. * * @param sXML * The XML string to read. May not be <code>null</code>. * @return <code>null</code> in case reading fails. */ @Nullable default JAXBTYPE read (@Nonnull final String sXML) { ValueEnforcer.notNull (sXML, "XML"); return read (new NonBlockingStringReader (sXML)); }
/** * Read a document from the specified char array. The secure reading feature * has affect when using this method. * * @param aXML * The XML string to read. May not be <code>null</code>. * @return <code>null</code> in case reading fails. */ @Nullable default JAXBTYPE read (@Nonnull final char [] aXML) { ValueEnforcer.notNull (aXML, "XML"); return read (new NonBlockingStringReader (aXML)); }
@Nullable public static CSSDeclarationList readFromString (@Nonnull final String sCSS, @Nonnull final ECSSVersion eVersion) { return readFromReader (new NonBlockingStringReader (sCSS), new CSSReaderSettings ().setCSSVersion (eVersion)); }
@Nullable public static CSSDeclarationList readFromString (@Nonnull final String sCSS, @Nonnull final ECSSVersion eVersion, @Nullable final ICSSParseErrorHandler aCustomErrorHandler) { return readFromReader (new NonBlockingStringReader (sCSS), new CSSReaderSettings ().setCSSVersion (eVersion) .setCustomErrorHandler (aCustomErrorHandler)); }
@Nullable public static CSSDeclarationList readFromString (@Nonnull final String sCSS, @Nonnull final ECSSVersion eVersion, @Nullable final ICSSParseExceptionCallback aCustomExceptionHandler) { return readFromReader (new NonBlockingStringReader (sCSS), new CSSReaderSettings ().setCSSVersion (eVersion) .setCustomExceptionHandler (aCustomExceptionHandler)); }
/** * Check if the passed String can be resembled to valid CSS content. This is * accomplished by fully parsing the CSS file each time the method is called. * This is similar to calling {@link #readFromString(String, ECSSVersion)} and * checking for a non-<code>null</code> result. * * @param sCSS * The CSS string to scan. May not be <code>null</code>. * @param eVersion * The CSS version to use. May not be <code>null</code>. * @return <code>true</code> if the CSS is valid according to the version, * <code>false</code> if not */ public static boolean isValidCSS (@Nonnull final String sCSS, @Nonnull final ECSSVersion eVersion) { ValueEnforcer.notNull (sCSS, "CSS"); return isValidCSS (new NonBlockingStringReader (sCSS), eVersion); }
@Nullable public static CSSDeclarationList readFromString (@Nonnull final String sCSS, @Nonnull final ECSSVersion eVersion, @Nullable final ICSSParseErrorHandler aCustomErrorHandler, @Nullable final ICSSParseExceptionCallback aCustomExceptionHandler) { return readFromReader (new NonBlockingStringReader (sCSS), new CSSReaderSettings ().setCSSVersion (eVersion) .setCustomErrorHandler (aCustomErrorHandler) .setCustomExceptionHandler (aCustomExceptionHandler)); }
/** * Check if the passed String can be resembled to valid CSS content. This is * accomplished by fully parsing the CSS file each time the method is called. * This is similar to calling * {@link #readFromString(String, Charset, ECSSVersion)} and checking for a * non-<code>null</code> result. * * @param sCSS * The CSS string to scan. May not be <code>null</code>. * @param eVersion * The CSS version to use. May not be <code>null</code>. * @return <code>true</code> if the CSS is valid according to the version, * <code>false</code> if not */ public static boolean isValidCSS (@Nonnull final String sCSS, @Nonnull final ECSSVersion eVersion) { ValueEnforcer.notNull (sCSS, "CSS"); return isValidCSS (new NonBlockingStringReader (sCSS), eVersion); }
aXadesSignatures = aUnmarshaller.unmarshal (new StreamSource (new NonBlockingStringReader (sRealXML)), XAdESSignaturesType.class) .getValue ();