Class SprmUtils


  • @Internal
    public final class SprmUtils
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      SprmUtils()  
    • Method Summary

      All Methods Static Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      static int addSpecialSprm​(short instruction, byte[] varParam, java.util.List<byte[]> list)  
      static int addSprm​(short instruction, boolean param, java.util.List<byte[]> list)  
      static int addSprm​(short instruction, int param, byte[] varParam, java.util.List<byte[]> list)  
      static int convertBrcToInt​(short[] brc)  
      static byte[] getGrpprl​(java.util.List<byte[]> sprmList, int size)  
      static int getMaxRecordLength()  
      static void setMaxRecordLength​(int length)  
      static byte[] shortArrayToByteArray​(short[] convert)
      Deprecated.
      unused by POI internally
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SprmUtils

        public SprmUtils()
    • Method Detail

      • setMaxRecordLength

        public static void setMaxRecordLength​(int length)
        Parameters:
        length - the max record length allowed for SPRM data
      • getMaxRecordLength

        public static int getMaxRecordLength()
        Returns:
        the max record length allowed for SPRM data
      • shortArrayToByteArray

        @Removal(version="6.0.0")
        public static byte[] shortArrayToByteArray​(short[] convert)
        Deprecated.
        unused by POI internally
      • addSpecialSprm

        public static int addSpecialSprm​(short instruction,
                                         byte[] varParam,
                                         java.util.List<byte[]> list)
      • addSprm

        public static int addSprm​(short instruction,
                                  boolean param,
                                  java.util.List<byte[]> list)
      • addSprm

        public static int addSprm​(short instruction,
                                  int param,
                                  byte[] varParam,
                                  java.util.List<byte[]> list)
      • getGrpprl

        public static byte[] getGrpprl​(java.util.List<byte[]> sprmList,
                                       int size)
      • convertBrcToInt

        public static int convertBrcToInt​(short[] brc)