Package railo.runtime.converter

Examples of railo.runtime.converter.WDDXConverter.deserialize()


      checkReadAccess();
    Resource storageDir = getStoragDir(config);
    Resource storage=storageDir.getRealResource(key+".wddx");
    if(!storage.exists()) throw new IOException("there is no storage with name "+key);
    WDDXConverter converter =new WDDXConverter(config.getTimeZone(),true,true);
    return converter.deserialize(IOUtil.toString(storage,"UTF-8"), true);
  }


  public void updateCustomTagDeepSearch(boolean customTagDeepSearch) throws SecurityException {
    checkWriteAccess();
View Full Code Here


    return converter.serialize(input);
  }
  private Object wddx2cfml(String input) throws ConverterException, IOException, FactoryConfigurationError {
    WDDXConverter converter =new WDDXConverter(pageContext.getTimeZone(),xmlConform,true);
    converter.setTimeZone(pageContext.getTimeZone());
    return converter.deserialize(input,validate);
  }
  private String cfml2js(Object input) throws ConverterException {
    if(toplevelvariable==null)missingTopLevelVariable();
    JSConverter converter =new JSConverter();
    return converter.serialize(input,toplevelvariable);
View Full Code Here

      String str=(String) o;
      if(str.trim().startsWith("<wddxPacket ")) {
        try {
          WDDXConverter converter =new WDDXConverter(pageContext.getTimeZone(),false,true);
          converter.setTimeZone(pageContext.getTimeZone());
          Object rst = converter.deserialize(str,false);
          DumpData data = toDumpData(rst, pageContext, maxlevel, props);
         
          DumpTable table = new DumpTable("string","#cc9999","#ffffff","#000000");
          table.setTitle("WDDX");
          table.appendRow(1,new SimpleDumpData("encoded"),data);
View Full Code Here

    if(!(str.indexOf("wddxPacket")>0)) return false;
   
    // wrong timezone but this isent importend because date will not be used
    WDDXConverter converter =new WDDXConverter(TimeZone.getDefault(),false,true);
    try {
      converter.deserialize(Caster.toString(o),true);
    }
    catch (Exception e) {
      return false;
    }
    return true;
View Full Code Here

      break;
      case UDF.RETURN_FORMAT_WDDX:
        try{
          WDDXConverter converter =new WDDXConverter(pc.getTimeZone(),false,true);
          converter.setTimeZone(pc.getTimeZone());
          return converter.deserialize(toString(data,charset),false);
        }
        catch(Exception pe){}
      break;
      case UDF.RETURN_FORMAT_XML:
        try{
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.