code: public byte[] generateLinkContent() throws IOException
     {
        ByteArrayOutputStream outStream = new ByteArrayOutputStream();
  
        // LINK HEADER
        for (int i = 0; i < linkHeader.length; i++)
        {
           byte curByteValue = (byte)linkHeader[i];
           outStream.write(curByteValue);
        }
        // LINK BODY
        byte[] linkContent = getLinkContent();
        writeInt(linkContent.length + 2, outStream);
        outStream.write(linkContent);
  
        // WRITE END LINK FILE
        for (int i = 0; i < 6; i++)
        {
           outStream.write(0);
        }
  
        return outStream.toByteArray();
     }
docs: Generates the content of link.
  
  @return link content
  @throws IOException {@link IOException}