Package 

Interface DataFormat

  • All Implemented Interfaces:
    icu.windea.breezeframework.core.component.Component

    
    public interface DataFormat
     implements Component
                        

    数据格式。

    数据格式基于一定的格式存储数据。

    • Method Summary

      Modifier and Type Method Description
      <T extends Any> String serialize(T value) 序列化指定对象。可以由第三方库委托实现。基于classpath推断具体实现,或者使用框架本身的默认实现。
      <T extends Any> T deserialize(String value, Class<T> type) 反序列化指定文本。可以由第三方库委托实现。基于classpath推断具体实现,或者使用框架本身的默认实现。
      <T extends Any> T deserialize(String value, Type type) 反序列化指定文本。可以由第三方库委托实现。基于classpath推断具体实现,或者使用框架本身的默认实现。
      abstract String getFileExtension() 文件扩展名。
      abstract Array<String> getFileExtensions() 可能的文件扩展名一览。
      abstract DataSerializer getSerializer() 对应的序列化器。可以由第三方库委托实现,基于classpath进行推断,或者使用由Breeze Framework实现的序列化器。可以进行自定义。
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • serialize

         <T extends Any> String serialize(T value)

        序列化指定对象。

        可以由第三方库委托实现。基于classpath推断具体实现,或者使用框架本身的默认实现。

      • deserialize

         <T extends Any> T deserialize(String value, Class<T> type)

        反序列化指定文本。

        可以由第三方库委托实现。基于classpath推断具体实现,或者使用框架本身的默认实现。

      • deserialize

         <T extends Any> T deserialize(String value, Type type)

        反序列化指定文本。

        可以由第三方库委托实现。基于classpath推断具体实现,或者使用框架本身的默认实现。

      • getSerializer

         abstract DataSerializer getSerializer()

        对应的序列化器。

        可以由第三方库委托实现,基于classpath进行推断,或者使用由Breeze Framework实现的序列化器。

        可以进行自定义。