Examples of escape()

@param string the literal string to be escaped @return the escaped form of {@code string} @throws NullPointerException if {@code string} is null @throws IllegalArgumentException if {@code string} contains badly formed UTF-16 or cannot beescaped for any other reason
  • com.google.common.escape.UnicodeEscaper.escape()
    Returns the escaped form of the given Unicode code point, or {@code null}if this code point does not need to be escaped. When called as part of an escaping operation, the given code point is guaranteed to be in the range {@code 0 <= cp <= Character#MAX_CODE_POINT}.

    If an empty array is returned, this effectively strips the input character from the resulting text.

    If the character does not need to be escaped, this method should return {@code null}, rather than an array containing the character representation of the code point. This enables the escaping algorithm to perform more efficiently.

    If the implementation of this method cannot correctly handle a particular code point then it should either throw an appropriate runtime exception or return a suitable replacement character. It must never silently discard invalid input as this may constitute a security risk. @param cp the Unicode code point to escape if necessary @return the replacement characters, or {@code null} if no escaping wasneeded

  • com.google.template.soy.internal.base.CharEscaper.escape()
    Returns the escaped form of a given literal string. @param string the literal string to be escaped @return the escaped form of {@code string} @throws NullPointerException if {@code string} is null
  • org.apache.lucene.queryParser.MultiFieldQueryParserSettings.escape()
  • org.apache.lucene.queryParser.QueryParserSettings.escape()
  • org.apache.lucene.queryparser.classic.QueryParserSettings.escape()
  • org.crsh.cli.impl.Delimiter.escape()
  • org.eclipse.persistence.internal.oxm.CharacterEscapeHandler.escape()

    Perform character escaping and write the result to the output.

    Note: This feature is not supported when marshalling to the following targets:

    @param buffer Array of characters to be escaped @param start The starting position @param length The number of characters being escaped @param isAttributeValue A value of 'true' indicates this is an attribute value @param out The resulting escaped characters will be written to this Writer @throws IOException In an error condition, IOException can be thrown to stop the marshalling process
  • org.eclipse.persistence.oxm.CharacterEscapeHandler.escape()

    Perform character escaping and write the result to the output.

    Note: This feature is not supported when marshalling to the following targets:

    @param buffer Array of characters to be escaped @param start The starting position @param length The number of characters being escaped @param isAttributeValue A value of 'true' indicates this is an attribute value @param out The resulting escaped characters will be written to this Writer @throws IOException In an error condition, IOException can be thrown to stop the marshalling process
  • org.jmol.script.ScriptVariable.escape()
  • org.jruby.runtime.Block.escape()
  • org.rythmengine.extension.ICodeType.escape()
    Return escape scheme @return escape
  • org.waveprotocol.wave.util.escapers.PercentEscaper.escape()

  • Examples of org.eclipse.persistence.oxm.CharacterEscapeHandler.escape()

            if (marshaller != null) {
                escapeHandler = marshaller.getCharacterEscapeHandler();
            }
            if (escapeHandler != null) {
                try {
                    escapeHandler.escape(value.toCharArray(), 0, value.length(), isAttribute, writer);
                } catch (IOException e) {
                    throw XMLMarshalException.marshalException(e);
                }
                return;
            }
    View Full Code Here

    Examples of org.eclipse.persistence.oxm.CharacterEscapeHandler.escape()

            if (escapeChars) {
                CharacterEscapeHandler escapeHandler = marshaller.getCharacterEscapeHandler();
                if (escapeHandler != null) {
                    try {
                        CharArrayWriter out = new CharArrayWriter();
                        escapeHandler.escape(value.toCharArray(), 0, value.length(), isAttribute, out);
                        byte[] bytes = out.toString().getBytes();
                        outputStreamWrite(bytes);
                        out.close();
                    } catch (IOException e) {
                        throw XMLMarshalException.marshalException(e);
    View Full Code Here

    Examples of org.eclipse.persistence.oxm.CharacterEscapeHandler.escape()

            if (marshaller != null) {
                escapeHandler = marshaller.getCharacterEscapeHandler();
            }
            if (escapeHandler != null) {
                try {
                    escapeHandler.escape(value.toCharArray(), 0, value.length(), isAttribute, writer);
                } catch (IOException e) {
                    throw XMLMarshalException.marshalException(e);
                }
                return;
            }
    View Full Code Here

    Examples of org.jmol.script.ScriptVariable.escape()

          String key = (String) e.nextElement();
          ScriptVariable var = (ScriptVariable) htVariables.get(key);
          if (withSites || (!key.startsWith("@site_") && !key.startsWith("site_")))
            list[n++] = key
                + (key.charAt(0) == '@' ? " " + ScriptVariable.sValue(var) : " = "
                    + varClip(key, var.escape(), nMax));
        }
        Arrays.sort(list, 0, n);
        for (int i = 0; i < n; i++)
          if (list[i] != null)
            appendCmd(sb, list[i]);
    View Full Code Here

    Examples of org.jruby.runtime.Block.escape()

                try {
                    return callAdapter.call(context, self, receiver, args, block);
                } catch (JumpException.RetryJump rj) {
                    // allow loop to retry
                } finally {
                    block.escape();
                }
            }   
        }
    }
    View Full Code Here

    Examples of org.jruby.runtime.Block.escape()

                try {
                    return callAdapter.call(context, self, receiver, block);
                } catch (JumpException.RetryJump rj) {
                    // allow loop to retry
                } finally {
                    block.escape();
                }
            }   
        }
    }
    View Full Code Here

    Examples of org.jruby.runtime.Block.escape()

            try {
                return callAdapter.callIter(context, self, receiver, args, block);
            } catch (JumpException.RetryJump rj) {
                throw runtime.newLocalJumpError(Reason.RETRY, self, "retry is not supported outside rescue");
            } finally {
                block.escape();
            }
        }
    }
    View Full Code Here

    Examples of org.jruby.runtime.Block.escape()

            try {
                return callAdapter.callIter(context, self, receiver, block);
            } catch (JumpException.RetryJump rj) {
                throw runtime.newLocalJumpError(Reason.RETRY, self, "retry is not supported outside rescue");
            } finally {
                block.escape();
            }
        }
    }
    View Full Code Here

    Examples of org.rythmengine.extension.ICodeType.escape()

            }
            public static Escape getEscape() {
                Escape e = escape_.get();
                if (null == e) {
                    ICodeType type = getCodeType();
                    e = null == type ? Escape.XML : type.escape();
                }
                return e;
            }
           
            private static final ThreadLocal<ICodeType> type_ = new ThreadLocal<ICodeType>();
    View Full Code Here

    Examples of org.waveprotocol.wave.util.escapers.PercentEscaper.escape()

      // *** Utility methods

      private void configureRedirectString(String location) {
        PercentEscaper escaper =
            new PercentEscaper(PercentEscaper.SAFEQUERYSTRINGCHARS_URLENCODER, false);
        String queryStr = "r=" + escaper.escape(location);
        when(req.getQueryString()).thenReturn(queryStr);
      }

      private void attemptLogin(String address, String password, boolean expectSuccess) throws IOException {
        // The query string is escaped.
    View Full Code Here
    TOP
    Copyright © 2018 www.massapi.com. All rights reserved.
    All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.